diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index f4f0077fe9..07aad0e285 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; }