浏览代码

backport candidate: fix a memory leak from r9039 which had us leaking
50ish bytes every time we rebuild the cached-router files.


svn:r10830

Roger Dingledine 18 年之前
父节点
当前提交
5ab3f49d93
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/or/routerlist.c

+ 1 - 0
src/or/routerlist.c

@@ -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);