Hi!

Can somebody apply this patch?

ChangeLog:

2002-07-03  Andrew V. Samoilov  <[EMAIL PROTECTED]>

        * sfs.c (sfs_free): Fix memory leakings.
        (sfs_init): Use PATH_SEP_STR.

--- vfs/sfs.c   Tue Oct  2 11:06:37 2001
+++ vfs/sfs.c   Wed Jul  3 16:50:39 2002
@@ -259,6 +259,10 @@ static void sfs_free (vfsid id)
        prev->next = cur->next;
     else
        head = cur->next;
+
+    g_free (cur->cache);
+    g_free (cur->name);
+    g_free (cur);
 }
 
 static void sfs_fill_names (vfs *me, void (*func)(char *))
@@ -295,7 +299,7 @@ static int sfs_init (vfs *me)
     char *mc_sfsini;
     FILE *cfg;
 
-    mc_sfsini = concat_dir_and_file (mc_home, "extfs/sfs.ini");
+    mc_sfsini = concat_dir_and_file (mc_home, "extfs" PATH_SEP_STR "sfs.ini");
     cfg = fopen (mc_sfsini, "r");
 
     if (!cfg){
_______________________________________________
Mc-devel mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/mc-devel

Reply via email to