Ticket #2784: segfault at chown.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2012-04-23 09:37:32 +04:00
parent eebb9739e4
commit ac880c71a7
1 changed files with 1 additions and 1 deletions

View File

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