[tor-commits] [tor/master] Fix a brazen memleak in consdiffmgr_add_consensus()

nickm at torproject.org nickm at torproject.org
Fri Apr 28 19:42:10 UTC 2017


commit b8f7488e94f2cb83bdf83228781a11233d9f0a46
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Apr 28 15:41:52 2017 -0400

    Fix a brazen memleak in consdiffmgr_add_consensus()
---
 src/or/consdiffmgr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/or/consdiffmgr.c b/src/or/consdiffmgr.c
index 4329fb2..b134578 100644
--- a/src/or/consdiffmgr.c
+++ b/src/or/consdiffmgr.c
@@ -486,6 +486,7 @@ consdiffmgr_add_consensus(const char *consensus,
                                 labels,
                                 (const uint8_t *)body_compressed,
                                 size_compressed);
+    tor_free(body_compressed);
     config_free_lines(labels);
   }
 



More information about the tor-commits mailing list