Commit b6a725c6 authored by Nick Mathewson's avatar Nick Mathewson 🥔
Browse files

Fix memory leaks in test_entrynodes.c

[Coverity CID 1232087 and 1232088]
parent 2cf229ab
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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