Free the compiled regex buffer

This commit is contained in:
Pasi Kallinen
2015-11-01 10:23:11 +02:00
parent 561ab1cb1e
commit bdb5cb2b73

View File

@@ -101,5 +101,6 @@ regex_match(const char *s, struct nhregex *re)
void
regex_free(struct nhregex *re)
{
regfree(&re->re);
free(re);
}