From: Nick Mathewson Date: Thu, 21 Aug 2014 14:18:17 +0000 (-0400) Subject: Fix memory leaks in test_entrynodes.c X-Git-Tag: tor-0.2.6.1-alpha~189^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6a725c67e46d274a518b6c5243fffdf1730a23f;p=thirdparty%2Ftor.git Fix memory leaks in test_entrynodes.c [Coverity CID 1232087 and 1232088] --- diff --git a/src/test/test_entrynodes.c b/src/test/test_entrynodes.c index fbb7625f84..fab82c3446 100644 --- a/src/test/test_entrynodes.c +++ b/src/test/test_entrynodes.c @@ -431,6 +431,7 @@ test_entry_guards_parse_state_simple(void *arg) done: state_lines_free(entry_state_lines); or_state_free(state); + tor_free(msg); } /** Similar to test_entry_guards_parse_state_simple() but aims to test @@ -515,6 +516,7 @@ test_entry_guards_parse_state_pathbias(void *arg) done: or_state_free(state); state_lines_free(entry_state_lines); + tor_free(msg); } /* Simple test of entry_guards_set_from_config() by specifying a