diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-04-18 18:40:38 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-04-18 18:40:38 +0000 |
commit | d14b612e13791f695b2a12eb2c425a5b775f9333 (patch) | |
tree | 99136b5c205468d793993310f081066186727acc /src/hashmap.c | |
parent | 45a96fde12dada030b79f591a5b5f2eea898e89e (diff) | |
download | tinyproxy-d14b612e13791f695b2a12eb2c425a5b775f9333.tar.gz tinyproxy-d14b612e13791f695b2a12eb2c425a5b775f9333.zip |
Fixed a memory leak in the hashmap_delete function. The array of maps was
not being deleted.
Diffstat (limited to '')
-rw-r--r-- | src/hashmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |