path: root/xlators/protocol/client
diff options
authorAshish Pandey <>2016-12-02 13:15:20 +0530
committerPranith Kumar Karampuri <>2016-12-02 08:24:32 -0800
commit55ddf8c6b665d0b2ed024b984e871a68b25cffbf (patch)
treecd5ba0f4678d62db4867088dffcb3e88945a19ae /xlators/protocol/client
parent99458974b7d12bd12d78d4b9a19adfb62d771b5c (diff)
cluster/ec: Check xdata to avoid memory leak
Problem: ec_writev_start calls ec_make_internal_fop_xdata to set "yes" in xdata before ec_readv (an internal fop) is called for head and tail. Second call to this function is overwriting the previous allocated dict_t to "xdata", which results in memory leak. Solution: In ec_make_internal_fop_xdata, check if *xdata is NULL or not to avoid overwriting *xdata. Change-Id: I49b83923e11aff9b92d002e86424c0c2e1f5f74f BUG: 1400818 Signed-off-by: Ashish Pandey <> Reviewed-on: Reviewed-by: Xavier Hernandez <> Reviewed-by: Pranith Kumar Karampuri <> Tested-by: Pranith Kumar Karampuri <> Smoke: Gluster Build System <> NetBSD-regression: NetBSD Build System <> CentOS-regression: Gluster Build System <>
Diffstat (limited to 'xlators/protocol/client')
0 files changed, 0 insertions, 0 deletions