free allocated char* for hash table entry key

This commit is contained in:
Sam Hatchett
2015-09-15 10:33:20 -04:00
parent 3f2e9eebfe
commit 3c8d8d7211

View File

@@ -118,6 +118,7 @@ void ENHashTableFree(ENHashTable *ht)
while (entry != NULL)
{
nextentry = entry->next;
free(entry->key);
free(entry);
entry = nextentry;
}