summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/conffile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conffile.c b/src/conffile.c
index 18f19fe..3c64603 100644
--- a/src/conffile.c
+++ b/src/conffile.c
@@ -657,9 +657,12 @@ HANDLE_FUNC(handle_loglevel)
for (i = 0; i != nlevels; ++i) {
if (!strcasecmp(arg, log_levels[i].string)) {
set_log_level(log_levels[i].level);
+ safefree(arg);
return 0;
}
}
+
+ safefree(arg);
return -1;
}