Skip to content
Snippets Groups Projects
Commit fd16a2b5 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

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

parent 2e0a50ab
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment