summaryrefslogtreecommitdiffstats
path: root/src/ulogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ulogd.c')
-rw-r--r--src/ulogd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ulogd.c b/src/ulogd.c
index b146f94..917ae3a 100644
--- a/src/ulogd.c
+++ b/src/ulogd.c
@@ -281,6 +281,8 @@ int ulogd_parse_configfile(const char *section, struct config_keyset *ce)
case -ERRUNKN:
ulogd_log(ULOGD_ERROR, "unknown config key \"%s\"\n",
config_errce->key);
+ free(config_errce);
+ config_errce = NULL;
break;
case -ERRSECTION:
ulogd_log(ULOGD_ERROR, "section \"%s\" not found\n", section);