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,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("invalid name '%s' for iSCSI disk"),
|
_("invalid name '%s' for iSCSI disk"),
|
||||||
def->src->path);
|
def->src->path);
|
||||||
|
virURIFree(uri);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user