Fix a memory leak
This commit is contained in:
parent
88d92c87ce
commit
fcf21ca4cf
2
utils.c
2
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue