From edbae0f3d266ad99b71b1d3ed15a0d9241afb53c Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Fri, 23 Apr 2010 06:49:25 +0000 Subject: mount/fuse: Destroy STACK when truncate and other op are part of same SETATTR Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 829 (SETATTR stack leak?) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=829 --- xlators/mount/fuse/src/fuse-bridge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index b01bf4cdffc..a87bd2677fe 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -938,9 +938,10 @@ fuse_setattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this, if (op_done) { free_state (state); - STACK_DESTROY (frame->root); } + STACK_DESTROY (frame->root); + return 0; } -- cgit