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:
Vit Rosin 2010-03-05 21:23:05 +03:00 committed by Andrew Borodin
parent afa93bbb36
commit c6a5837f6d
1 changed files with 3 additions and 1 deletions

View File

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