mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Ticket #2108: Fixed memory leak in fish_linear_start() function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
2dc590fe62
commit
07a7f446b0
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user