Add missing regex_frees

This commit is contained in:
Pasi Kallinen
2015-11-01 01:38:12 +02:00
parent c6832a4d57
commit 0261bbf727

View File

@@ -1384,6 +1384,7 @@ char *pattern;
else
pline("%s: %s", re_error, regex_error_desc(tmp->regex));
wait_synch();
regex_free(tmp->regex);
free(tmp);
return FALSE;
}
@@ -1499,6 +1500,7 @@ int c, a;
else
pline("%s: %s", re_error, regex_error_desc(tmp->match));
wait_synch();
regex_free(tmp->match);
free(tmp);
return FALSE;
} else {