Fix a memory leak

It happened in dirvote_add_signatures_to_pending_consesus().
This commit is contained in:
Sebastian Hahn 2010-08-15 18:24:23 +02:00
parent 4c49d3c27e
commit 527581194c
2 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,5 @@
o Minor bugfixes o Minor bugfixes
- Fix a memory leak in the error case of circuit_build_times_parse_state(). - Fix a memory leak in the error case of circuit_build_times_parse_state().
Bugfix on 0.2.2.14-alpha; fixes bug 1831 partially. Bugfix on 0.2.2.14-alpha; fixes bug 1831 partially.
- Fix a memory leak in dirvote_add_signatures_to_pending_consensus().
Bugfix on 0.2.2.6-alpha; fixes bug 1831 partially.

View File

@ -3008,6 +3008,7 @@ dirvote_add_signatures_to_pending_consensus(
networkstatus_vote_free(v); networkstatus_vote_free(v);
} }
*msg_out = "Signatures added"; *msg_out = "Signatures added";
tor_free(new_signatures);
} else if (r == 0) { } else if (r == 0) {
*msg_out = "Signatures ignored"; *msg_out = "Signatures ignored";
} else { } else {