[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Fix a brazen memleak in consdiffmgr_add_consensus()
commit b8f7488e94f2cb83bdf83228781a11233d9f0a46
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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);
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits