aboutsummaryrefslogtreecommitdiff
path: root/src/acl.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-02-21 15:40:59 +0200
committerSergey Poznyakoff <gray@gnu.org>2016-02-21 15:40:59 +0200
commit722533c595a0976e50cca45dca7f28ff7e599970 (patch)
tree6534bb0f16d74e75237497f3838034ffe7c84509 /src/acl.c
parent599a468169078449b68e7c0ef711c14fb746f0ea (diff)
downloadpies-722533c595a0976e50cca45dca7f28ff7e599970.tar.gz
pies-722533c595a0976e50cca45dca7f28ff7e599970.tar.bz2
Fix memory leaks when reconfiguring
* grecs: Upgrade. * src/acl.c (_acl_common_section_parser): Free old value. * src/pies.c: Mark statically initialized keywords with GRECS_CONST.
Diffstat (limited to 'src/acl.c')
-rw-r--r--src/acl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/acl.c b/src/acl.c
index e7523f5..53e5dd8 100644
--- a/src/acl.c
+++ b/src/acl.c
@@ -535,7 +535,10 @@ _acl_common_section_parser (enum grecs_callback_command cmd,
if (tag && (acl = pies_acl_install (acl)) == NULL)
return 1;
if (pacl)
- *pacl = acl;
+ {
+ pies_acl_free (*pacl);
+ *pacl = acl;
+ }
break;
case grecs_callback_section_end:

Return to:

Send suggestions and report system problems to the System administrator.