Fixed a memory leak (ladish_recent_store.items [i])

This commit is contained in:
Dan A. Muresan 2011-05-14 13:00:13 +03:00
parent fc987c0a36
commit 0b568aeb99
1 changed files with 3 additions and 0 deletions

View File

@ -210,6 +210,9 @@ void
ladish_recent_store_destroy(
ladish_recent_store_handle store_handle)
{
unsigned int i;
for (i = 0; i < store_ptr->max_items && store_ptr->items[i] != NULL; i++)
free (store_ptr->items [i]);
free(store_ptr->items);
free(store_ptr->path);
free(store_ptr);