Rare memory leak in vfs/vfs.c



Hello,

-- 
Regards,
Andrew V. Samoilov.
ChangeLog:

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

--- vfs.c~	Wed Oct 15 16:38:32 2003
+++ vfs.c	Wed Oct 15 18:28:56 2003
@@ -391,6 +391,7 @@ mc_open (const char *filename, int flags
     va_end (ap);
     
     if (!vfs->open) {
+	g_free (file);
 	errno = -EOPNOTSUPP;
 	return -1;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]