diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 186bc21bae..2582dadf2e 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -6973,6 +6973,9 @@ qemuDomainGetNumaParameters(virDomainPtr dom, if (virTypedParameterAssign(param, VIR_DOMAIN_NUMA_NODESET, VIR_TYPED_PARAM_STRING, nodeset) < 0) goto cleanup; + + nodeset = NULL; + break; default: @@ -6986,6 +6989,7 @@ qemuDomainGetNumaParameters(virDomainPtr dom, ret = 0; cleanup: + VIR_FREE(nodeset); virCgroupFree(&group); if (vm) virDomainObjUnlock(vm);