1
0
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:
John Ferlan 2014-08-27 14:32:27 -04:00
parent be7b82a283
commit 461fb55599

View File

@ -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;
}
}