* sfs.c (sfs_free): Fix memory leak.

(sfs_init): Use PATH_SEP_STR.
This commit is contained in:
Pavel Roskin 2002-07-03 15:27:36 +00:00
parent 58e2509096
commit 694468d9bb
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-07-03 Andrew V. Samoilov <kai@cmail.ru>
* sfs.c (sfs_free): Fix memory leak.
(sfs_init): Use PATH_SEP_STR.
2002-07-03 Pavel Roskin <proski@gnu.org>
* cpio.c (cpio_open_cpio_file): Fix type initialization.

View File

@ -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){