mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
qemu_cgroup: initialize mem_mask to NULL
If 'virNumaGetHostNodeset()' fails then the error path will try to free uninitialized pointer mem_mask. Introduced by commitaf2a1f058
. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> (cherry picked from commit77a9dc0b8d
) Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
0e1054a129
commit
5e7b535238
@ -789,7 +789,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
Block a user