You may wish to include this patch which fixes a bad memory leak then. And
2.4.2
IS a new release not included in 2.4.1-r1.
From fuse-devel newsgroup by author, Miklos Szeredi
Index: lib/fuse.c
===================================================================
RCS file: /cvsroot/fuse/fuse/lib/fuse.c,v
retrieving revision 1.148
diff -u -r1.148 fuse.c
--- lib/fuse.c 28 Nov 2005 16:02:27 -0000 1.148
+++ lib/fuse.c 2 Dec 2005 11:00:31 -0000
@@ -1742,6 +1742,7 @@
void fuse_process_cmd(struct fuse *f, struct fuse_cmd *cmd)
{
fuse_session_process(f->se, cmd->buf, cmd->buflen, cmd->ch);
+ free_cmd(cmd);
}
int fuse_exited(struct fuse *f)
@@ -1779,6 +1780,8 @@
int res = fuse_chan_receive(ch, cmd->buf, bufsize);
if (res <= 0) {
free_cmd(cmd);
+ if (res == -1)
+ fuse_exit(f);
return NULL;
}
cmd->buflen = res;
This is a bad one. Line #s against 2.4.1 are very different though. See
functions:
void fuse_process_cmd (diff begins at line 1656)
struct fuse_cmd *fuse_read_cmd (diff begins at line 1693)
I strongly recommend upgrading to 2.4.2 and modifying the above patch to repair
the leak.