aboutsummaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/perf/pubdrop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/perf/pubdrop.c b/src/tools/perf/pubdrop.c
index 27d7802a..af715a88 100644
--- a/src/tools/perf/pubdrop.c
+++ b/src/tools/perf/pubdrop.c
@@ -323,4 +323,7 @@ do_pubdrop(int argc, char **argv)
printf("Drop rate %.2f%%\n", expect ? 100.0 * missing / expect : 0);
nng_mtx_unlock(pa.mtx);
+ nng_cv_free(pa.cv);
+ nng_mtx_free(pa.mtx);
+ free(thrs);
}