summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-04-23 06:49:25 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-04-23 06:33:10 -0700
commitedbae0f3d266ad99b71b1d3ed15a0d9241afb53c (patch)
tree353d93378e887bd8bb526737f6719301377a78a3 /xlators
parentebb7cac6f9d8b97e3c5dc9e9c6709d5dca6ae60b (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')
-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 b01bf4c..a87bd26 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;
}