summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.c b/utils.c
index 6d7198d..133f950 100644
--- a/utils.c
+++ b/utils.c
@@ -1806,6 +1806,7 @@ read_config_file (struct str_map *config, struct error **e)
{
error_set (e, "could not open `%s' for reading: %s",
filename, strerror (errno));
+ free (filename);
return false;
}
@@ -1842,6 +1843,7 @@ read_config_file (struct str_map *config, struct error **e)
str_free (&line);
fclose (fp);
+ free (filename);
return !errors;
}