commit 9d47f4d298553cbbafa5afb65e4972bff0b3024a Author: Nick Mathewson <ni...@torproject.org> Date: Wed Jan 18 14:29:52 2017 -0500
Fix a memory leak in bench.c --- src/test/bench.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/bench.c b/src/test/bench.c index 30984fd..99bc686 100644 --- a/src/test/bench.c +++ b/src/test/bench.c @@ -120,7 +120,7 @@ bench_onion_TAP(void) uint64_t start, end; char os[TAP_ONIONSKIN_CHALLENGE_LEN]; char or[TAP_ONIONSKIN_REPLY_LEN]; - crypto_dh_t *dh_out; + crypto_dh_t *dh_out = NULL; key = crypto_pk_new(); key2 = crypto_pk_new(); @@ -175,6 +175,7 @@ bench_onion_TAP(void) NANOCOUNT(start, end, iters)/1e3); done: + crypto_dh_free(dh_out); crypto_pk_free(key); crypto_pk_free(key2); } _______________________________________________ tor-commits mailing list tor-commits@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits