Skip to content

Commit

Permalink
Fix leak in pubdrop
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Nov 5, 2024
1 parent ed090f7 commit b82e942
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tools/perf/pubdrop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit b82e942

Please sign in to comment.