From f7eccd4bb54039f94312a56b40599d7cb446951e Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Mon, 15 Dec 2008 00:18:44 -0500 Subject: opkg: (leak fixing, day 2) lots and lots of memory leaks fixed git-svn-id: http://opkg.googlecode.com/svn/trunk@115 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/hash_table.c') diff --git a/libopkg/hash_table.c b/libopkg/hash_table.c index c0c0530..b03dd74 100644 --- a/libopkg/hash_table.c +++ b/libopkg/hash_table.c @@ -85,6 +85,7 @@ void hash_table_deinit(hash_table_t *hash) /* free the reminaing entries */ for (i = 0; i < hash->n_entries; i++) { hash_entry_t *hash_entry = (hash->entries + i); + free (hash_entry->key); /* skip the first entry as this is part of the array */ hash_entry = hash_entry->next; while (hash_entry) -- cgit v0.9.1