From 167e82e99394b69f354b587d849d45681d1ef7f2 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Fri, 25 May 2012 12:35:12 -0700 Subject: Partial bugfix 8111 This fixes the biggest memory leak in the config load. There are still a few small ones but they are not as big of a problem since the process is ephemeral. --- src/cli_new.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/cli_new.c b/src/cli_new.c index 87c5087..716c06f 100644 --- a/src/cli_new.c +++ b/src/cli_new.c @@ -1114,6 +1114,7 @@ static boolean check_syn_func(vtw_node *cur,const char *prepend_msg,boolean form status = regexec(&myreg, left.cnt? left.vals[ii]:left.val, 0, 0, 0); + regfree(&myreg); if(status) { ret = FALSE; break; -- cgit v1.2.3