Eliminate free'ing already freed chunks.

MFC after:	1 week
This commit is contained in:
sobomax 2002-05-22 10:33:25 +00:00
parent 4c6a64b45e
commit 897a546e39

View File

@ -297,11 +297,12 @@ storecreate(struct store *store)
}
store->currlen = 0;
store->store = NULL;
} else
if (store->store != NULL)
} else if (store->store != NULL) {
/* Free previously allocated memory */
for (i = 0; store->store[i] != NULL; i++)
free(store->store[i]);
store->store[0] = NULL;
}
store->used = 0;
return store;