mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
(do_panelize_cd): fix memory leak.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
11ed948f02
commit
3ba4229508
@ -469,7 +469,8 @@ do_panelize_cd (WPanel * panel)
|
||||
tmp_vpath =
|
||||
vfs_path_append_new (panelized_panel.root_vpath,
|
||||
panelized_panel.list.list[i].fname->str, (char *) NULL);
|
||||
list->list[i].fname = g_string_new (vfs_path_free (tmp_vpath, FALSE));
|
||||
list->list[i].fname = g_string_new (vfs_path_as_str (tmp_vpath));
|
||||
vfs_path_free (tmp_vpath, TRUE);
|
||||
}
|
||||
list->list[i].f.link_to_dir = panelized_panel.list.list[i].f.link_to_dir;
|
||||
list->list[i].f.stale_link = panelized_panel.list.list[i].f.stale_link;
|
||||
|
Loading…
Reference in New Issue
Block a user