Hi,

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

Defect Details

** CID 900480:       Resource leaks  (RESOURCE_LEAK)
/src/util/viriommufd.c: 91           in virIOMMUFDOpenDevice()


_____________________________________________________________________________________________
*** CID 900480:         Resource leaks  (RESOURCE_LEAK)
/src/util/viriommufd.c: 91             in virIOMMUFDOpenDevice()
85         int fd = -1;
86     
87         if ((fd = open(VIR_IOMMU_DEV_PATH, O_RDWR | O_CLOEXEC)) < 0)
88             virReportSystemError(errno, "%s", _("cannot open IOMMUFD device"));
89     
90         if (virIOMMUFDSetRLimitMode(fd, true) < 0)
>>>     CID 900480:         Resource leaks  (RESOURCE_LEAK)
>>>     Handle variable "fd" going out of scope leaks the handle.
91             return -1;
92     
93         return fd;
94     }
95     
96     #else

  

View Defects in Coverity Scan

Best regards,

The Coverity Scan Admin Team