Fix a stupid memory leak I introduced in 8afbc154. Bug not in any released Tor.

This commit is contained in:
Nick Mathewson 2015-08-17 09:42:35 -04:00
parent 2e0a50abf4
commit fd16a2b56f
1 changed files with 0 additions and 1 deletions

View 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");