New Defects reported by Coverity Scan for libvirt

Hi, Please find the latest report on new defect(s) introduced to libvirt found with Coverity Scan. 2 new defect(s) introduced to libvirt found with Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 2 of 2 defect(s) ** CID 404348: Resource leaks (RESOURCE_LEAK) /src/remote/remote_daemon_dispatch.c: 7484 in remoteDispatchDomainFdAssociate() ________________________________________________________________________________________________________ *** CID 404348: Resource leaks (RESOURCE_LEAK) /src/remote/remote_daemon_dispatch.c: 7484 in remoteDispatchDomainFdAssociate() 7478 rv = 0; 7479 7480 cleanup: 7481 if (rv < 0) 7482 virNetMessageSaveError(rerr); 7483 virObjectUnref(dom);
CID 404348: Resource leaks (RESOURCE_LEAK) Variable "fds" going out of scope leaks the storage it points to.
7484 return rv;
** CID 404347: Null pointer dereferences (NULL_RETURNS) /src/qemu/qemu_snapshot.c: 2472 in qemuSnapshotUpdateDisksSingle() ________________________________________________________________________________________________________ *** CID 404347: Null pointer dereferences (NULL_RETURNS) /src/qemu/qemu_snapshot.c: 2472 in qemuSnapshotUpdateDisksSingle() 2466 if (virStorageSourceIsSameLocation(snapDisk->src, disk->src)) { 2467 virObjectUnref(disk->src); 2468 disk->src = virStorageSourceCopy(parentDisk->src, false); 2469 } 2470 } 2471
CID 404347: Null pointer dereferences (NULL_RETURNS) Dereferencing "disk->src", which is known to be "NULL".
2472 if (disk->src->backingStore) { 2473 virStorageSource *cur = disk->src; 2474 virStorageSource *next = disk->src->backingStore; 2475 2476 while (next) { 2477 if (virStorageSourceIsSameLocation(snapDisk->src, next)) {
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...
participants (1)
-
scan-admin@coverity.com