From 63ff670f402a1912b11557738dfc3fe485f9a6bc Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 4 Mar 2019 16:34:54 +0100 Subject: [PATCH] qemu: domain: Use VIR_AUTOFREE in qemuDomainObjPrivateXMLParseBlockjobs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- src/qemu/qemu_domain.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- GitLab