From dc844c545caa7f2cf08fd71caa5051348a5f3c78 Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Wed, 27 Aug 2014 15:14:04 +0530 Subject: cluster/afr: Fix dict_t leaks dict_t objects that are ref'd in alloca'd "replies" in afr_replies_copy() are not unref'd after "replies" go out of scope. Change-Id: Id5a6ca3c17a8de72b94b3e0f92165609da5a36ea BUG: 1134221 Signed-off-by: Krutika Dhananjay Reviewed-on: http://review.gluster.org/8553 Reviewed-by: Pranith Kumar Karampuri Tested-by: Pranith Kumar Karampuri Tested-by: Gluster Build System --- xlators/cluster/afr/src/afr.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'xlators/cluster/afr/src/afr.h') diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h index 35d4d545bc9..8e7bea79712 100644 --- a/xlators/cluster/afr/src/afr.h +++ b/xlators/cluster/afr/src/afr.h @@ -821,7 +821,7 @@ int afr_replies_interpret (call_frame_t *frame, xlator_t *this, inode_t *inode); void -afr_replies_wipe (afr_local_t *local, afr_private_t *priv); +afr_local_replies_wipe (afr_local_t *local, afr_private_t *priv); void afr_local_cleanup (afr_local_t *local, xlator_t *this); @@ -964,4 +964,8 @@ afr_local_pathinfo (char *pathinfo, gf_boolean_t *is_local); void afr_remove_eager_lock_stub (afr_local_t *local); + +void +afr_replies_wipe (struct afr_reply *replies, int count); + #endif /* __AFR_H__ */ -- cgit