From: Pasi Kallinen Date: Sat, 31 Oct 2015 23:38:12 +0000 (+0200) Subject: Add missing regex_frees X-Git-Tag: NetHack-3.6.0_RC01~113 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0261bbf727fbaccd204e3630df494dee09862f69;p=nethack Add missing regex_frees --- diff --git a/src/options.c b/src/options.c index 07f124a56..ba2b05fd4 100644 --- a/src/options.c +++ b/src/options.c @@ -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 {