From 0af0d9740b09811696706f1dd5f9f9478b7c40c4 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Mon, 29 Jun 2015 18:08:07 +0200 Subject: libfuse: fix possible memory leak Reported by Jose R. Guzman --- lib/fuse_lowlevel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/fuse_lowlevel.c') 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); -- cgit v1.2.3