mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-19 06:13:07 +03:00
Ticket #2069: fixed memory leaks.
Fixed memory leak in mc_config_read_file(). Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
afa93bbb36
commit
c6a5837f6d
@ -205,8 +205,10 @@ mc_config_read_file (mc_config_t * mc_config, const gchar * ini_path)
|
||||
|
||||
groups = mc_config_get_groups (tmp_config, NULL);
|
||||
|
||||
if (groups == NULL)
|
||||
if (groups == NULL) {
|
||||
mc_config_deinit (tmp_config);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
for (curr_grp = groups; *curr_grp != NULL; curr_grp++) {
|
||||
keys = mc_config_get_keys (tmp_config, *curr_grp, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user