This commit is contained in:
Eric Andersen 2001-11-19 11:45:39 +00:00
parent 55805bcba4
commit 6f8b7ea452

View File

@ -216,14 +216,14 @@ static void load_regexes_from_file(const char *filename)
#ifdef CONFIG_FEATURE_CLEAN_UP #ifdef CONFIG_FEATURE_CLEAN_UP
static void destroy_regexes() static void destroy_regexes(void)
{ {
if (regexes == NULL) if (regexes == NULL)
return; return;
/* destroy all the elments in the array */ /* destroy all the elments in the array */
while (--nregexes >= 0) { while (--nregexes >= 0) {
regfree(regexes[nregexes]); regfree(&(regexes[nregexes]));
} }
if (regexes) if (regexes)
free(regexes); free(regexes);