diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-25 22:39:17 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-25 22:39:17 +0200 |
commit | fcf21ca4cf2840f03f1294eb79c4489d908b2455 (patch) | |
tree | dd0c9b3fc99ad026f3e670b572df3f2b236b7db6 | |
parent | 88d92c87ce31625c6d633246cf70ec440d579945 (diff) | |
download | ponymap-fcf21ca4cf2840f03f1294eb79c4489d908b2455.tar.gz ponymap-fcf21ca4cf2840f03f1294eb79c4489d908b2455.tar.xz ponymap-fcf21ca4cf2840f03f1294eb79c4489d908b2455.zip |
Fix a memory leak
-rw-r--r-- | utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |