mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
(remove_entry): fix memleak.
Signed-off-by: Andreas Mohr <and@gmx.li> Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
66a6185064
commit
957185a47b
@ -530,7 +530,7 @@ remove_entry (tree_entry * entry)
|
||||
ts.tree_last = entry->prev;
|
||||
|
||||
/* Free the memory used by the entry */
|
||||
g_free (entry->name);
|
||||
vfs_path_free (entry->name);
|
||||
g_free (entry);
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user