]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix memory leaks in test_entrynodes.c
authorNick Mathewson <nickm@torproject.org>
Thu, 21 Aug 2014 14:18:17 +0000 (10:18 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 21 Aug 2014 14:18:17 +0000 (10:18 -0400)
[Coverity CID 1232087 and 1232088]

src/test/test_entrynodes.c

index fbb7625f84964c1e73321cdac0a2021689527b80..fab82c3446d9169c50d9f791258dbbec9eb15d12 100644 (file)
@@ -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