Fixed a memory leak in the hashmap_delete function. The array of maps was

not being deleted.
This commit is contained in:
Robert James Kaes 2002-04-18 18:40:38 +00:00
parent 45a96fde12
commit d14b612e13

View File

@ -1,4 +1,4 @@
/* $Id: hashmap.c,v 1.4 2002-04-18 17:57:20 rjkaes Exp $
/* $Id: hashmap.c,v 1.5 2002-04-18 18:40:38 rjkaes Exp $
*
* A hashmap implementation. The keys are case-insensitive NULL terminated
* strings, and the data is arbitrary lumps of data. Copies of both the
@ -159,6 +159,7 @@ hashmap_delete(hashmap_t map)
delete_hashentries(map->maps[i]);
}
safefree(map->maps);
safefree(map);
return 0;