mirror of https://gitee.com/openkylin/libvirt.git
qemu_command: Resolve Coverity RESOURCE_LEAK
In qemuParseISCSIString() if an error was returned, then the call to qemuParseDriveURIString() where the uri is free'd wouldn't be run
This commit is contained in:
parent
be7b82a283
commit
461fb55599
|
@ -2795,6 +2795,7 @@ qemuParseISCSIString(virDomainDiskDefPtr def)
|
|||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("invalid name '%s' for iSCSI disk"),
|
||||
def->src->path);
|
||||
virURIFree(uri);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue