diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2010-08-15 18:24:23 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2010-08-16 00:46:42 +0200 |
commit | 527581194c285e5b08d4bb4fd9c573a0f12dd83b (patch) | |
tree | d5dd5141fa58d0e4bce986b492889133de140561 | |
parent | 4c49d3c27eb664561f1cc953f7c6fa441ac7cedc (diff) | |
download | tor-527581194c285e5b08d4bb4fd9c573a0f12dd83b.tar.gz tor-527581194c285e5b08d4bb4fd9c573a0f12dd83b.zip |
Fix a memory leak
It happened in dirvote_add_signatures_to_pending_consesus().
-rw-r--r-- | changes/bug1831 | 2 | ||||
-rw-r--r-- | src/or/dirvote.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/changes/bug1831 b/changes/bug1831 index 40b3fcf52c..6c504dadbc 100644 --- a/changes/bug1831 +++ b/changes/bug1831 @@ -1,3 +1,5 @@ o Minor bugfixes - 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. + - Fix a memory leak in dirvote_add_signatures_to_pending_consensus(). + Bugfix on 0.2.2.6-alpha; fixes bug 1831 partially. diff --git a/src/or/dirvote.c b/src/or/dirvote.c index fd4d742ccb..0042934c4a 100644 --- a/src/or/dirvote.c +++ b/src/or/dirvote.c @@ -3008,6 +3008,7 @@ dirvote_add_signatures_to_pending_consensus( networkstatus_vote_free(v); } *msg_out = "Signatures added"; + tor_free(new_signatures); } else if (r == 0) { *msg_out = "Signatures ignored"; } else { |