aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-09-25 22:39:17 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-09-25 22:39:17 +0200
commitfcf21ca4cf2840f03f1294eb79c4489d908b2455 (patch)
treedd0c9b3fc99ad026f3e670b572df3f2b236b7db6
parent88d92c87ce31625c6d633246cf70ec440d579945 (diff)
downloadponymap-fcf21ca4cf2840f03f1294eb79c4489d908b2455.tar.gz
ponymap-fcf21ca4cf2840f03f1294eb79c4489d908b2455.tar.xz
ponymap-fcf21ca4cf2840f03f1294eb79c4489d908b2455.zip
Fix a memory leak
-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;
}