summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-12-04 20:02:28 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-12-06 09:28:45 -0800
commit9f37cca2ced2628f480fbdcf2071ca4b16b3549e (patch)
treecdcc3cb2dca2da38057d7866d665db65749bed84
parent84f474a00f68c4ac685fca970b1fe814a8c6e032 (diff)
fuse-bridge: fix memory leak during error handling.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 438 (Memory leak) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=438
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index 78ae9c0..1dc710c 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -2549,6 +2549,7 @@ fuse_thread_proc (void *data)
}
if (res == -1) {
+ iobuf_unref (iobuf);
if (errno != EINTR) {
gf_log ("glusterfs-fuse", GF_LOG_WARNING,
"fuse_chan_receive() returned -1 (%d)", errno);