From fcf21ca4cf2840f03f1294eb79c4489d908b2455 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Thu, 25 Sep 2014 22:39:17 +0200
Subject: [PATCH] Fix a memory leak
---
utils.c | 2 ++
1 file changed, 2 insertions(+)
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;
}