* vfs.c (mc_open): Fix rare memory leak on failure.

This commit is contained in:
Pavel Roskin 2003-10-16 20:46:08 +00:00
parent f426c570a6
commit 3b2e731d3d
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-10-16 Andrew V. Samoilov <sav@bcs.zp.ua>
* vfs.c (mc_open): Fix rare memory leak on failure.
2003-10-16 Pavel Roskin <proski@gnu.org>
* direntry.c (vfs_s_setctl): Implement VFS_SETCTL_FLUSH.

View File

@ -390,6 +390,7 @@ mc_open (const char *filename, int flags, ...)
va_end (ap);
if (!vfs->open) {
g_free (file);
errno = -EOPNOTSUPP;
return -1;
}