[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Fix a leak in test_microdesc (CID 1311631)
commit 8507d75c8231a3af372beb0c695af078b4e27a7b
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Sat Jul 11 16:47:21 2015 -0400
Fix a leak in test_microdesc (CID 1311631)
---
src/test/test_microdesc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/test_microdesc.c b/src/test/test_microdesc.c
index a4b9a0c..b205eff 100644
--- a/src/test/test_microdesc.c
+++ b/src/test/test_microdesc.c
@@ -834,10 +834,10 @@ test_md_corrupt_desc(void *arg)
cp, cp+strlen(cp),
SAVED_IN_JOURNAL, 0, time(NULL), NULL);
tt_int_op(smartlist_len(sl), ==, 0);
- smartlist_free(sl);
done:
tor_free(cp);
+ smartlist_free(sl);
}
struct testcase_t microdesc_tests[] = {
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits