summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/conf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf.c b/src/conf.c
index 9660ed0..19e6b5a 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -385,6 +385,10 @@ static int set_string_arg (char **var, const char *line, regmatch_t * match)
if (!arg)
return -1;
+ if (*var != NULL) {
+ safefree (*var);
+ }
+
*var = arg;
return 0;