]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a stupid memory leak I introduced in 8afbc154. Bug not in any released Tor.
authorNick Mathewson <nickm@torproject.org>
Mon, 17 Aug 2015 13:42:35 +0000 (09:42 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 17 Aug 2015 13:42:35 +0000 (09:42 -0400)
src/or/microdesc.c

index 051603d32740ed153bf13f6d5b3e9df721d67f03..a9bab3ddc6141d0f6cffa015643c25d15fb7256d 100644 (file)
@@ -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");