summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSantosh Kumar Pradhan <spradhan@redhat.com>2014-01-29 17:09:55 +0530
committerVijay Bellur <vbellur@redhat.com>2014-02-11 21:06:53 -0800
commit99c84c250501a676f73c0dd7e9b842f8c95b1f98 (patch)
tree47a1f05fae1ae6b5915c98b3d756c0ca7ee634ae /tests
parent408d50a64b7b3a9d6a4899060baa423ff126cc5f (diff)
gNFS: Coverity fix for possible memory leak
In nfs_gfid_dict(), if dict_new() fails, the control goes to out: block and dyngfid resource (dynamically allocated by GF_CALLOC()) is leaked. Add a validation for memory returned by GF_CALLOC() Drop unnecessary "goto" statements Coverity CID: 1124764 Change-Id: Idda7923cc1c32260b3353f7a9141aa1cf43e4fe1 BUG: 789278 Signed-off-by: Santosh Kumar Pradhan <spradhan@redhat.com> Reviewed-on: http://review.gluster.org/6852 Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions