diff options
| author | Krutika Dhananjay <kdhananj@redhat.com> | 2014-09-18 14:36:38 +0530 |
|---|---|---|
| committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2014-09-23 04:03:12 -0700 |
| commit | e2a76e76e3d9174fa77f40f3abd0212705283f00 (patch) | |
| tree | 45f7361d08ad02a5f41f16c0fc08b55e4cfa7a05 /rpc/rpc-transport/socket/src | |
| parent | c0b40b5bb1ff73131c743d74d3da16a28b2cbd28 (diff) | |
cluster/dht: Fix dict_t leaks in rebalance process' execution path
Backport of: http://review.gluster.org/8763
Two dict_t objects are leaked for every file migrated in success codepath.
It is the caller's responsibility to unref dict that it gets from calls to
syncop_getxattr(); and rebalance performs two syncop_getxattr()s per file
without freeing them.
Also, syncop_getxattr() on GF_XATTR_LINKINFO_KEY doesn't seem to be using
the response dict. Hence, NULL is now passed as opposed to @dict to
syncop_getxattr().
Change-Id: I59556ee6e135e7e65d4ddd31ba0f39e7eb50b02d
BUG: 1144792
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/8789
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'rpc/rpc-transport/socket/src')
0 files changed, 0 insertions, 0 deletions
