Ticket #2108: Fixed memory leak in fish_linear_start() function.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Vit Rosin 2010-03-17 09:07:46 +00:00 committed by Andrew Borodin
parent 2dc590fe62
commit 07a7f446b0

View File

@ -819,9 +819,10 @@ fish_linear_start (struct vfs_class *me, struct vfs_s_fh *fh, off_t offset)
if (offset)
ERRNOR (E_NOTSUPP, 0);
name = vfs_s_fullpath (me, fh->ino);
if (!name)
if (name == NULL)
return 0;
quoted_name = strutils_shell_escape(name);
quoted_name = strutils_shell_escape (name);
g_free (name);
fh->u.fish.append = 0;
/*