-------- Original Message --------
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