Memory leakins in sfs.c
- From: "Andrew V. Samoilov" <kai cmail ru>
- To: GNU Midnight Commander Development Team <mc-devel gnome org>
- Subject: Memory leakins in sfs.c
- Date: Wed, 3 Jul 2002 17:03:36 +0300
Hi!
Can somebody apply this patch?
ChangeLog:
2002-07-03 Andrew V. Samoilov <kai cmail ru>
* 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){
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]