summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-common.c
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-11-15 04:02:45 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-11-15 04:03:46 -0800
commit7d48999c13b885d034528cfca61a8b63ade8a365 (patch)
tree529057b3b42e88bc1012a6e89f4fc6d3c578a279 /xlators/cluster/afr/src/afr-common.c
parent415f7f6a29b361dfccc197a6b67add1733c7f617 (diff)
cluster/replicate: Fix memory leak in afr_fd_ctx_cleanup.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1438 (memory leaks) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1438
Diffstat (limited to 'xlators/cluster/afr/src/afr-common.c')
-rw-r--r--xlators/cluster/afr/src/afr-common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c
index 4ef11cb1b..356f077e7 100644
--- a/xlators/cluster/afr/src/afr-common.c
+++ b/xlators/cluster/afr/src/afr-common.c
@@ -1439,6 +1439,9 @@ afr_cleanup_fd_ctx (xlator_t *this, fd_t *fd)
if (fd_ctx->locked_on)
GF_FREE (fd_ctx->locked_on);
+ if (fd_ctx->pre_op_piggyback)
+ GF_FREE (fd_ctx->pre_op_piggyback);
+
GF_FREE (fd_ctx);
}