Contents of /trunk/fuse/patches/fuse-2.4.2-fix-memleak.patch
Parent Directory
|
Revision Log
Revision 144 -
(show annotations)
(download)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 587 byte(s)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 587 byte(s)
-import
1 | diff -ur fuse fuseold |
2 | --- fuse/lib/fuse.c 2005-12-03 18:19:33.000000000 -0500 |
3 | +++ fuseold/lib/fuse.c 2005-12-03 18:19:33.000000000 -0500 |
4 | @@ -1656,6 +1656,7 @@ |
5 | void fuse_process_cmd(struct fuse *f, struct fuse_cmd *cmd) |
6 | { |
7 | fuse_session_process(f->se, cmd->buf, cmd->buflen, cmd->ch); |
8 | + free_cmd(cmd); |
9 | } |
10 | |
11 | int fuse_exited(struct fuse *f) |
12 | @@ -1693,6 +1694,8 @@ |
13 | int res = fuse_chan_receive(ch, cmd->buf, bufsize); |
14 | if (res <= 0) { |
15 | free_cmd(cmd); |
16 | + if (res == -1) |
17 | + fuse_exit(f); |
18 | return NULL; |
19 | } |
20 | cmd->buflen = res; |
21 |