]> granicus.if.org Git - nethack/commitdiff
Free the compiled regex buffer
authorPasi Kallinen <paxed@alt.org>
Sun, 1 Nov 2015 08:23:11 +0000 (10:23 +0200)
committerPasi Kallinen <paxed@alt.org>
Sun, 1 Nov 2015 08:23:11 +0000 (10:23 +0200)
sys/share/posixregex.c

index 64ff142c859e279aff50fb727a656c44bca3159b..0b4ba218d06a744d8ade418dff2a06164f0941a3 100644 (file)
@@ -101,5 +101,6 @@ regex_match(const char *s, struct nhregex *re)
 void
 regex_free(struct nhregex *re)
 {
+    regfree(&re->re);
     free(re);
 }