diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-05-16 10:47:41 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-05-16 10:47:41 -0400 |
commit | bbeba2412e58501da4097409258d329ca97edb2e (patch) | |
tree | d45ad1954b147970e013119156ea54bd269e9565 /src/or/consdiffmgr.c | |
parent | 2ca827104db2425bdb7f854c7b20d102706d559a (diff) | |
download | tor-bbeba2412e58501da4097409258d329ca97edb2e.tar.gz tor-bbeba2412e58501da4097409258d329ca97edb2e.zip |
Fix resource leak in parse_consensus_request()
We were allocating diff_hash_in_url on some URLs, but not freeing it.
Fixes CID 1409669. Bug not in any released Tor.
Diffstat (limited to 'src/or/consdiffmgr.c')
-rw-r--r-- | src/or/consdiffmgr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/consdiffmgr.c b/src/or/consdiffmgr.c index a8df077001..2af104733b 100644 --- a/src/or/consdiffmgr.c +++ b/src/or/consdiffmgr.c @@ -566,6 +566,7 @@ consdiffmgr_find_consensus(struct consensus_cache_entry_t **entry_out, consensus_flavor_t flavor, compress_method_t method) { + tor_assert(entry_out); tor_assert((int)flavor < N_CONSENSUS_FLAVORS); int pos = consensus_compression_method_pos(method); |