From 47a067c333c3e662e4e8a7b8197d24f9d4e61e99 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Mon, 23 Apr 2012 09:37:32 +0400 Subject: [PATCH] Ticket #2784: segfault at chown. Signed-off-by: Andrew Borodin --- src/filemanager/chown.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filemanager/chown.c b/src/filemanager/chown.c index 77ce0ae04..5953023b0 100644 --- a/src/filemanager/chown.c +++ b/src/filemanager/chown.c @@ -378,7 +378,7 @@ chown_cmd (void) if (mc_chown (fname_vpath, new_user, new_group) == -1) message (D_ERROR, MSG_ERROR, _("Cannot chown \"%s\"\n%s"), fname, unix_error_string (errno)); - vfs_path_free (vpath); + vfs_path_free (fname_vpath); } else apply_chowns (new_user, new_group);