Fix a memory leak

This commit is contained in:
Přemysl Eric Janouch 2014-09-25 22:39:17 +02:00
parent 88d92c87ce
commit fcf21ca4cf
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}