Eliminate free'ing already freed chunks.

MFC after:	1 week
This commit is contained in:
Maxim Sobolev 2002-05-22 10:33:25 +00:00
parent b9f6304141
commit 6950a26a50

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;