mirror of https://github.com/MidnightCommander/mc
Ticket #2053: fixed memory leak in mc_symlink() function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
e2b2ea2bfa
commit
3770047407
|
@ -617,7 +617,8 @@ mc_symlink (const char *name1, const char *path)
|
|||
vfs = vfs_get_class (mpath);
|
||||
result = vfs->symlink ? (*vfs->symlink) (vfs, lpath, mpath) : -1;
|
||||
g_free (lpath);
|
||||
|
||||
g_free (mpath);
|
||||
|
||||
if (result == -1)
|
||||
errno = vfs->symlink ? ferrno (vfs) : E_NOTSUPP;
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue