diff options
| author | Krutika Dhananjay <kdhananj@redhat.com> | 2014-08-27 15:14:04 +0530 |
|---|---|---|
| committer | Vijay Bellur <vbellur@redhat.com> | 2014-09-16 04:14:36 -0700 |
| commit | 1343efc2b5fc65b84afabb51ac537537ccb27722 (patch) | |
| tree | 807fd5e4b4c0d3b291040304cb08718a5e585c0a /xlators/cluster/afr/src/afr.h | |
| parent | 516677dc5f0c8ec9ad367a7487ae45e6e3d8be05 (diff) | |
cluster/afr: Fix dict_t leaks
Backport of: http://review.gluster.org/#/c/8557/
dict_t objects that are ref'd in alloca'd "replies" in
afr_replies_copy() are not unref'd before "replies" go out of scope.
Change-Id: I9bb45bc673ec13292ac96dda060aceb48739ebe8
BUG: 1136831
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/8704
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr.h')
| -rw-r--r-- | xlators/cluster/afr/src/afr.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h index ddcb2c0e177..6348f7cd999 100644 --- a/xlators/cluster/afr/src/afr.h +++ b/xlators/cluster/afr/src/afr.h @@ -826,7 +826,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); @@ -969,4 +969,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__ */ |
