Pārlūkot izejas kodu

Fix strmap_free to release memory actually held by the strmap.

svn:r3708
Nick Mathewson 20 gadi atpakaļ
vecāks
revīzija
0a2be3c9d8
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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);