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

[tor-commits] [tor/master] missing smartlist_free in new consdiff test



commit b7dd3518b98a6473f78138f8abfdc3372f2339f6
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Tue Apr 18 22:56:34 2017 -0400

    missing smartlist_free in new consdiff test
---
 src/test/test_consdiff.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/test/test_consdiff.c b/src/test/test_consdiff.c
index 9198616..a1a51ec 100644
--- a/src/test/test_consdiff.c
+++ b/src/test/test_consdiff.c
@@ -622,6 +622,8 @@ test_consdiff_gen_ed_diff(void *arg)
   tt_str_eq_line(".", smartlist_get(diff, 5));
   tt_str_eq_line("2d", smartlist_get(diff, 6));
 
+  smartlist_free(diff);
+
   smartlist_clear(cons1);
   smartlist_clear(cons2);
   consensus_split_lines(cons1, "B\n", area);

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