mirror of https://gitee.com/openkylin/libvirt.git
qemu_cgroup: initialize mem_mask to NULL
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>
This commit is contained in:
parent
5e4f49ab8a
commit
77a9dc0b8d
|
@ -791,7 +791,7 @@ qemuInitCgroup(virQEMUDriverPtr driver,
|
|||
static void
|
||||
qemuRestoreCgroupState(virDomainObjPtr vm)
|
||||
{
|
||||
char *mem_mask;
|
||||
char *mem_mask = NULL;
|
||||
int empty = -1;
|
||||
qemuDomainObjPrivatePtr priv = vm->privateData;
|
||||
virBitmapPtr all_nodes;
|
||||
|
|
Loading…
Reference in New Issue