Browse Source

Fix memory leaks in test_entrynodes.c

[Coverity CID 1232087 and 1232088]
Nick Mathewson 9 years ago
parent
commit
b6a725c67e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/test/test_entrynodes.c

+ 2 - 0
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