]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix memory leak in test_crypto_aes_ctr_testvec
authorNick Mathewson <nickm@torproject.org>
Mon, 16 May 2016 13:55:09 +0000 (09:55 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 16 May 2016 13:55:09 +0000 (09:55 -0400)
src/test/test_crypto.c

index cba91584f505a86dae20c970fd879476b8b6fbd1..52059451a27aaa7fcd6fcc1010136ff7949fa5db 100644 (file)
@@ -548,6 +548,7 @@ test_crypto_aes_ctr_testvec(void *arg)
 
  done:
   tor_free(mem_op_hex_tmp);
+  crypto_cipher_free(c);
 }
 
 /** Run unit tests for our SHA-1 functionality */