diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | lib/fuse_lowlevel.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2015-06-29 Miklos Szeredi <miklos@szeredi.hu> + + * libfuse: fix possible memory leak. Reported by Jose R. Guzman + 2015-05-26 Miklos Szeredi <miklos@szeredi.hu> * Use system directory for system-wide udev rules by default. This diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c index f25d56f..0d66ccc 100755 --- a/lib/fuse_lowlevel.c +++ b/lib/fuse_lowlevel.c @@ -793,11 +793,11 @@ static int fuse_send_data_iov(struct fuse_ll *f, struct fuse_chan *ch, goto clear_pipe; } res = read_back(llp->pipe[0], tmpbuf, headerlen); + free(tmpbuf); if (res != 0) { free(mbuf); goto clear_pipe; } - free(tmpbuf); res = read_back(llp->pipe[0], mbuf, now_len); if (res != 0) { free(mbuf); |