diff --git a/src/tools/perf/pubdrop.c b/src/tools/perf/pubdrop.c index 27d7802a3..af715a884 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); }