diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2015-06-29 18:08:07 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2015-06-29 18:14:42 +0200 |
commit | 0af0d9740b09811696706f1dd5f9f9478b7c40c4 (patch) | |
tree | 38c9c80123224dd8ff1edb286153c8bb0123e5dc /lib/fuse_lowlevel.c | |
parent | c72a4b1571dfab16bfc3589420b3e2af829f3437 (diff) |
libfuse: fix possible memory leak
Reported by Jose R. Guzman
Diffstat (limited to 'lib/fuse_lowlevel.c')
-rwxr-xr-x | lib/fuse_lowlevel.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |