Merge branch '2053_vfs_memleak'

* 2053_vfs_memleak:
  Ticket #2053: fixed memory leak in mc_symlink() function.
This commit is contained in:
Andrew Borodin 2010-02-24 12:08:20 +00:00
commit 26e167d249

View File

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