From 68d7a772109af00717b7c552e26bba32ce4c1537 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Tue, 2 Mar 2010 16:50:28 +0000 Subject: [PATCH] Fixed of GSList item deallocation. Signed-off-by: Andrew Borodin --- lib/vfs/mc-vfs/extfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vfs/mc-vfs/extfs.c b/lib/vfs/mc-vfs/extfs.c index fbc8d7bab..c567bc604 100644 --- a/lib/vfs/mc-vfs/extfs.c +++ b/lib/vfs/mc-vfs/extfs.c @@ -706,7 +706,7 @@ extfs_resolve_symlinks_int (struct entry *entry, GSList * list) looping = g_slist_prepend (list, entry); pent = extfs_find_entry_int (entry->dir, entry->inode->linkname, looping, FALSE, FALSE); - g_free (looping); /* It is OK here, no any leaks */ + g_slist_delete_link (looping, looping); if (pent == NULL) my_errno = ENOENT; -- 2.11.4.GIT