summaryrefslogtreecommitdiffstats
path: root/xlators/features/quota
diff options
context:
space:
mode:
authorMohit Agrawal <moagrawal@redhat.com>2018-12-07 14:36:45 +0530
committerAmar Tumballi <amarts@redhat.com>2019-01-16 17:31:59 +0000
commit98550952bef0d84677706e75ff53a41dc8c90dec (patch)
treececb4c1be02d0bdf9c865b27fb4364aa11a58364 /xlators/features/quota
parent213f31bf9e72eee57a6579b66e259af8e59e9c67 (diff)
core: Resolve memory leak for brick
Problem: Some functions are not freeing memory allocated by xdr_to_genric so it has become leak Solution: Call free to avoid leak Change-Id: I3524fe2831d1511d378a032f21467edae3850314 fixes: bz#1656682 Signed-off-by: Mohit Agrawal <moagrawal@redhat.com>
Diffstat (limited to 'xlators/features/quota')
-rw-r--r--xlators/features/quota/src/quotad-aggregator.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/features/quota/src/quotad-aggregator.c b/xlators/features/quota/src/quotad-aggregator.c
index 3b883d3f7e0..b3ed777c8e2 100644
--- a/xlators/features/quota/src/quotad-aggregator.c
+++ b/xlators/features/quota/src/quotad-aggregator.c
@@ -280,6 +280,8 @@ errx:
if (dict)
dict_unref(dict);
+ if (cli_req.dict.dict_val)
+ free(cli_req.dict.dict_val);
return ret;
}
@@ -347,6 +349,7 @@ err:
rsp.op_errno = op_errno;
quotad_aggregator_lookup_cbk(this, frame, &rsp);
+ free(args.xdata.xdata_val);
return ret;
}