summaryrefslogtreecommitdiff
path: root/src/or/microdesc.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-08-17 09:42:35 -0400
committerNick Mathewson <nickm@torproject.org>2015-08-17 09:42:35 -0400
commitfd16a2b56fcc11688bc58c795713039fdb347e8c (patch)
tree9f394cc21cf54bc45ccd7b9cc354cdada44ea202 /src/or/microdesc.c
parent2e0a50abf415297a3e0e10c4147f738d3458c373 (diff)
downloadtor-fd16a2b56fcc11688bc58c795713039fdb347e8c.tar.gz
tor-fd16a2b56fcc11688bc58c795713039fdb347e8c.zip
Fix a stupid memory leak I introduced in 8afbc154. Bug not in any released Tor.
Diffstat (limited to 'src/or/microdesc.c')
-rw-r--r--src/or/microdesc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/or/microdesc.c b/src/or/microdesc.c
index 051603d327..a9bab3ddc6 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");