mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
qemu: domain: Use VIR_AUTOFREE in qemuDomainObjPrivateXMLParseBlockjobs
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
8f956ee71a
commit
63ff670f40
@ -2668,14 +2668,13 @@ static int
|
||||
qemuDomainObjPrivateXMLParseBlockjobs(qemuDomainObjPrivatePtr priv,
|
||||
xmlXPathContextPtr ctxt)
|
||||
{
|
||||
char *active;
|
||||
VIR_AUTOFREE(char *) active = NULL;
|
||||
int tmp;
|
||||
|
||||
if ((active = virXPathString("string(./blockjobs/@active)", ctxt)) &&
|
||||
(tmp = virTristateBoolTypeFromString(active)) > 0)
|
||||
priv->reconnectBlockjobs = tmp;
|
||||
|
||||
VIR_FREE(active);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user