diff --git a/src/HashMap.c b/src/HashMap.c index 32a3199..eca0bdb 100644 --- a/src/HashMap.c +++ b/src/HashMap.c @@ -184,6 +184,8 @@ HashMapDelete(HashMap * map, const char *key) if (bucket->hash == hash) { bucket->hash = 0; + Free(bucket->key); + bucket->key = NULL; return bucket->value; }