free allocated char* for hash table entry key
This commit is contained in:
@@ -118,6 +118,7 @@ void ENHashTableFree(ENHashTable *ht)
|
|||||||
while (entry != NULL)
|
while (entry != NULL)
|
||||||
{
|
{
|
||||||
nextentry = entry->next;
|
nextentry = entry->next;
|
||||||
|
free(entry->key);
|
||||||
free(entry);
|
free(entry);
|
||||||
entry = nextentry;
|
entry = nextentry;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user