diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index f4f0077fe9aa081368b859f51e2109cb11dee2e5..07aad0e2856909c62d18cf669e5bc5f96dae20c4 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -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; }