backport candidate: fix a memory leak from r9039 which had us leaking

50ish bytes every time we rebuild the cached-router files.


svn:r10830
This commit is contained in:
Roger Dingledine 2007-07-15 08:34:32 +00:00
parent 2c2f7ee6a4
commit 5ab3f49d93

View File

@ -501,6 +501,7 @@ router_rebuild_store(int force, int extrainfo)
if (signed_descriptors) if (signed_descriptors)
smartlist_free(signed_descriptors); smartlist_free(signed_descriptors);
tor_free(fname); tor_free(fname);
tor_free(fname_tmp);
SMARTLIST_FOREACH(chunk_list, sized_chunk_t *, c, tor_free(c)); SMARTLIST_FOREACH(chunk_list, sized_chunk_t *, c, tor_free(c));
smartlist_free(chunk_list); smartlist_free(chunk_list);