mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 03:21:44 +03:00
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
Block a user