summaryrefslogtreecommitdiff
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-06-08 14:39:47 -0700
commit3df95d3f999867e64d04604705f3d6f89fdad392 (patch)
tree6fabf858962e6827fc1de857c6c41cd32604f4b3
parentb7d8f9ddb290fe23af4d62b812e66fb5bf563e1d (diff)
downloadvyatta-cfg-3df95d3f999867e64d04604705f3d6f89fdad392.tar.gz
vyatta-cfg-3df95d3f999867e64d04604705f3d6f89fdad392.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.
-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;