From d14b612e13791f695b2a12eb2c425a5b775f9333 Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Thu, 18 Apr 2002 18:40:38 +0000 Subject: Fixed a memory leak in the hashmap_delete function. The array of maps was not being deleted. --- src/hashmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/hashmap.c') diff --git a/src/hashmap.c b/src/hashmap.c index 4b47d93..eb83749 100644 --- a/src/hashmap.c +++ b/src/hashmap.c @@ -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; -- cgit v1.2.3