소스 검색

Fix strmap_free to release memory actually held by the strmap.

svn:r3708
Nick Mathewson 20 년 전
부모
커밋
0a2be3c9d8
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/common/container.c

+ 1 - 0
src/common/container.c

@@ -623,6 +623,7 @@ strmap_free(strmap_t *map, void (*free_val)(void*))
     tor_free(ent->key);
     if (free_val)
       free_val(ent->val);
+    tor_free(ent);
   }
   tor_assert(SPLAY_EMPTY(&map->head));
   tor_free(map);