[tor-commits] [tor/master] Fix a stupid memory leak I introduced in 8afbc154. Bug not in any released Tor.
nickm at torproject.org
nickm at torproject.org
Mon Aug 17 13:42:43 UTC 2015
commit fd16a2b56fcc11688bc58c795713039fdb347e8c
Author: Nick Mathewson <nickm at torproject.org>
Date: Mon Aug 17 09:42:35 2015 -0400
Fix a stupid memory leak I introduced in 8afbc154. Bug not in any released Tor.
---
src/or/microdesc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/or/microdesc.c b/src/or/microdesc.c
index 051603d..a9bab3d 100644
--- a/src/or/microdesc.c
+++ b/src/or/microdesc.c
@@ -132,7 +132,6 @@ get_microdesc_cache_noload(void)
{
if (PREDICT_UNLIKELY(the_microdesc_cache==NULL)) {
microdesc_cache_t *cache = tor_malloc_zero(sizeof(*cache));
- tor_malloc_zero(sizeof(microdesc_cache_t));
HT_INIT(microdesc_map, &cache->map);
cache->cache_fname = get_datadir_fname("cached-microdescs");
cache->journal_fname = get_datadir_fname("cached-microdescs.new");
More information about the tor-commits
mailing list