Browse Source

bugfix: actually use the argument to strmap_free()

svn:r3640
Roger Dingledine 20 years ago
parent
commit
b5bddd8cfd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/container.c

+ 1 - 1
src/common/container.c

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