summaryrefslogtreecommitdiffstats
path: root/xlators/mount
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-04-23 06:45:34 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-04-23 06:32:38 -0700
commit0a5b61b7a1aae73dbb9f98c932c47751107e0e4e (patch)
tree9c18b46e7367a55c84d32e9640ba4c82ce93f310 /xlators/mount
parentbf18a37a1b66ca3ac75713d39e68dde1a116f4cf (diff)
mount/fuse: Destroy STACK when truncate and other op are part of same SETATTR
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 829 (SETATTR stack leak?) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=829
Diffstat (limited to 'xlators/mount')
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index ac766e772a7..b57dc0cfeb2 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;
}