From 3b2e731d3d19295005ebadeab5b1ad519b89d6ae Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Thu, 16 Oct 2003 20:46:08 +0000 Subject: [PATCH] * vfs.c (mc_open): Fix rare memory leak on failure. --- vfs/ChangeLog | 4 ++++ vfs/vfs.c | 1 + 2 files changed, 5 insertions(+) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index 95eb9d9be..2878d181a 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,7 @@ +2003-10-16 Andrew V. Samoilov + + * vfs.c (mc_open): Fix rare memory leak on failure. + 2003-10-16 Pavel Roskin * direntry.c (vfs_s_setctl): Implement VFS_SETCTL_FLUSH. diff --git a/vfs/vfs.c b/vfs/vfs.c index c02af809a..44bcbe194 100644 --- a/vfs/vfs.c +++ b/vfs/vfs.c @@ -390,6 +390,7 @@ mc_open (const char *filename, int flags, ...) va_end (ap); if (!vfs->open) { + g_free (file); errno = -EOPNOTSUPP; return -1; }