[Gluster-devel] Fwd: New Defects reported by Coverity Scan for GlusterFS

Lalatendu Mohanty lmohanty at redhat.com
Tue Mar 18 05:55:24 UTC 2014




-------- Original Message --------
Subject: 	New Defects reported by Coverity Scan for GlusterFS
Date: 	Mon, 17 Mar 2014 22:19:17 -0700
From: 	scan-admin at coverity.com



Hi,


Please find the latest report on new defect(s) introduced to GlusterFS found with Coverity Scan.

Defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 1192875:  Resource leak  (RESOURCE_LEAK)
/xlators/storage/bd/src/bd.c: 688 in bd_open()


________________________________________________________________________________________________________
*** CID 1192875:  Resource leak  (RESOURCE_LEAK)
/xlators/storage/bd/src/bd.c: 688 in bd_open()
682
683             /* open posix equivalant of this file, fd needed for fd related
684                operations like fsetxattr, ftruncate etc */
685             STACK_WIND (frame, bd_open_cbk, FIRST_CHILD(this),
686                         FIRST_CHILD(this)->fops->open, loc, flags, fd, xdata);
687
>>>     CID 1192875:  Resource leak  (RESOURCE_LEAK)
>>>     Variable "devpath" going out of scope leaks the storage it points to.
688             return 0;
689     out:
690             BD_STACK_UNWIND (open, frame, -1, ret, fd, NULL);
691
692             GF_FREE (devpath);
693             if (ret) {


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, http://scan.coverity.com/projects/987?tab=Overview

To unsubscribe from the email notification for new defects, http://scan5.coverity.com/cgi-bin/unsubscribe.py





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20140318/e1820be0/attachment-0001.html>


More information about the Gluster-devel mailing list