mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 06:35:24 +00:00
qemu: Use VIR_AUTOFREE in qemuDomainObjPrivateXMLParseJobNBDSource
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
08c4a54ec0
commit
e1899a2490
@ -2714,8 +2714,8 @@ qemuDomainObjPrivateXMLParseJobNBDSource(xmlNodePtr node,
|
||||
{
|
||||
VIR_XPATH_NODE_AUTORESTORE(ctxt);
|
||||
qemuDomainDiskPrivatePtr diskPriv = QEMU_DOMAIN_DISK_PRIVATE(disk);
|
||||
char *format = NULL;
|
||||
char *type = NULL;
|
||||
VIR_AUTOFREE(char *) format = NULL;
|
||||
VIR_AUTOFREE(char *) type = NULL;
|
||||
int ret = -1;
|
||||
VIR_AUTOUNREF(virStorageSourcePtr) migrSource = NULL;
|
||||
xmlNodePtr sourceNode;
|
||||
@ -2771,8 +2771,6 @@ qemuDomainObjPrivateXMLParseJobNBDSource(xmlNodePtr node,
|
||||
ret = 0;
|
||||
|
||||
cleanup:
|
||||
VIR_FREE(format);
|
||||
VIR_FREE(type);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user