diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index a16ebd14a7..8824266dfa 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -10964,8 +10964,10 @@ virDomainDefParseXML(xmlDocPtr xml, } /* Ignore 'nodeset' if 'placement' is 'auto' finally */ - if (placement_mode == VIR_NUMA_TUNE_MEM_PLACEMENT_MODE_AUTO) + if (placement_mode == VIR_NUMA_TUNE_MEM_PLACEMENT_MODE_AUTO) { virBitmapFree(def->numatune.memory.nodemask); + def->numatune.memory.nodemask = NULL; + } /* Copy 'placement' of to if its 'placement' * is not specified and 'placement' of is specified.