summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2012-05-25 12:35:12 -0700
committerJohn Southworth <john.southworth@vyatta.com>2012-05-25 12:35:12 -0700
commit167e82e99394b69f354b587d849d45681d1ef7f2 (patch)
treeb97a7f52daf1b084cec1b8bbca6cdafb0d0284de /src
parent4d84c6f38796dc97fdf1e03c8fecf60519d0765f (diff)
downloadvyatta-cfg-167e82e99394b69f354b587d849d45681d1ef7f2.tar.gz
vyatta-cfg-167e82e99394b69f354b587d849d45681d1ef7f2.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/cli_new.c1
1 files changed, 1 insertions, 0 deletions
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;