summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-open.c
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2009-12-04 04:52:33 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-12-04 02:52:00 -0800
commit05ad7717083057de819ad545591bffeb8af2f741 (patch)
treea6218ced4773af8b6d02940688ccb2ec9391a5c3 /xlators/cluster/afr/src/afr-open.c
parent349f9b77178aac3d2823bb35b0dc6c40b7a3b876 (diff)
afr: fix memory leaks
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 170 (Auto-heal fails on files that are open()-ed/mmap()-ed) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=170
Diffstat (limited to 'xlators/cluster/afr/src/afr-open.c')
-rw-r--r--xlators/cluster/afr/src/afr-open.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-open.c b/xlators/cluster/afr/src/afr-open.c
index e60ec70c0c4..ae58eef0616 100644
--- a/xlators/cluster/afr/src/afr-open.c
+++ b/xlators/cluster/afr/src/afr-open.c
@@ -430,6 +430,8 @@ afr_up_down_flush_done (call_frame_t *frame, xlator_t *this)
out:
UNLOCK (&local->fd->lock);
+ afr_local_transaction_cleanup (local, this);
+
local->up_down_flush_cbk (frame, this);
return 0;