mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 13:17:58 +03:00
qemu: fix memory leak in qemuBuildDiskDeviceStr
Commit a1dce962
added the allocated scsiVPDDeviceId without freeing it.
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
0c5d8300c5
commit
3b4819802b
@ -1890,7 +1890,7 @@ qemuBuildDiskDeviceStr(const virDomainDef *def,
|
||||
const char *bus = virDomainDiskQEMUBusTypeToString(disk->bus);
|
||||
const char *contAlias;
|
||||
char *backendAlias = NULL;
|
||||
char *scsiVPDDeviceId = NULL;
|
||||
VIR_AUTOFREE(char *) scsiVPDDeviceId = NULL;
|
||||
int controllerModel;
|
||||
|
||||
if (qemuCheckDiskConfig(disk, qemuCaps) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user