浏览代码

Merge branch 'bug23139' into maint-0.3.1

Nick Mathewson 6 年之前
父节点
当前提交
a47b8fcf92
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 3 0
      changes/bug23139
  2. 1 0
      src/or/consdiffmgr.c

+ 3 - 0
changes/bug23139

@@ -0,0 +1,3 @@
+  o Minor bugfixes (directory cache):
+    - Fix a memory leak in the code that recovers space in the consensus
+      directory cache. Fixes bug 23139; bugfix on 0.3.1.1-alpha.

+ 1 - 0
src/or/consdiffmgr.c

@@ -1156,6 +1156,7 @@ consdiffmgr_ensure_space_for_files(int n)
     if (++n_marked >= n_to_remove)
       break;
   } SMARTLIST_FOREACH_END(ent);
+  smartlist_free(objects);
 
   consensus_cache_delete_pending(cache, 1);
   if (BUG(n_marked < n_to_remove))