If 'virNumaGetHostNodeset()' fails then the error path will try to free
uninitialized pointer mem_mask. Introduced by commit
af2a1f058.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
(cherry picked from commit
77a9dc0b8dc714212a8550314178b09684719546)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
static void
qemuRestoreCgroupState(virDomainObjPtr vm)
{
- char *mem_mask;
+ char *mem_mask = NULL;
int empty = -1;
qemuDomainObjPrivatePtr priv = vm->privateData;
virBitmapPtr all_nodes;