summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-config-file.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/wee-config-file.c b/src/core/wee-config-file.c
index 83fef3b76..59551fff2 100644
--- a/src/core/wee-config-file.c
+++ b/src/core/wee-config-file.c
@@ -3670,6 +3670,10 @@ config_file_read_internal (struct t_config_file *config_file, int reload)
filename, line_number,
line);
config_file_backup (filename);
+ if (option)
+ free (option);
+ if (value)
+ free (value);
goto end_file;
}
else
@@ -3687,6 +3691,10 @@ config_file_read_internal (struct t_config_file *config_file, int reload)
config_file->version_read,
config_file->version);
config_file_backup (filename);
+ if (option)
+ free (option);
+ if (value)
+ free (value);
goto end_file;
}
}