diff options
author | Ravishankar N <ravishankar@redhat.com> | 2014-09-08 21:52:30 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2014-09-09 03:12:15 -0700 |
commit | 7d0a305e23a28631c7c3e8cfc648c9c9a24148f6 (patch) | |
tree | 38d048175f8d1c1a2c63d65489f8cb086342d92f /xlators/features/quota/src/quota-enforcer-client.c | |
parent | 822cf315a5d0f0d2bc90e9f2d8faa6e5e5701ed4 (diff) |
quota/marker: Fix dict leaks
Unref dicts in quota and marker functions before they return.
Change-Id: I772edc7b46657a70fb136e037576c65e9beeaca8
BUG: 1139327
Signed-off-by: Ravishankar N <ravishankar@redhat.com>
Reviewed-on: http://review.gluster.org/8655
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Tested-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/features/quota/src/quota-enforcer-client.c')
-rw-r--r-- | xlators/features/quota/src/quota-enforcer-client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/features/quota/src/quota-enforcer-client.c b/xlators/features/quota/src/quota-enforcer-client.c index a52180936e3..49279449320 100644 --- a/xlators/features/quota/src/quota-enforcer-client.c +++ b/xlators/features/quota/src/quota-enforcer-client.c @@ -321,7 +321,8 @@ quota_enforcer_blocking_connect (rpc_clnt_t *rpc) ret = 0; out: - dict_unref (options); + if (options) + dict_unref (options); return ret; } |