]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix memory leak in test_routerkeys
authorNick Mathewson <nickm@torproject.org>
Thu, 28 May 2015 17:00:25 +0000 (13:00 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 28 May 2015 17:00:25 +0000 (13:00 -0400)
CID 1301376

src/test/test_routerkeys.c

index 26f9701f492a5d639afa11582e6e78728a309e40..f0ac9fff711a0eb7b4ea8b132ddb951552c784dd 100644 (file)
@@ -604,6 +604,8 @@ test_routerkeys_cross_certify_tap(void *args)
 
  done:
   tor_free(cc);
+  crypto_pk_free(id_key);
+  crypto_pk_free(onion_key);
 }
 
 #define TEST(name, flags)                                       \