[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix memory leak in test_crypto_aes_ctr_testvec



commit 249f3a1664479879dc9096034901614302398841
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Mon May 16 09:55:09 2016 -0400

    Fix memory leak in test_crypto_aes_ctr_testvec
---
 src/test/test_crypto.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c
index cba9158..5205945 100644
--- a/src/test/test_crypto.c
+++ b/src/test/test_crypto.c
@@ -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 */

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits