mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
Fix free of uninitialized value in LXC numad setup
The 'nodeset' variable was never initialized, causing a later VIR_FREE(nodeset) to free uninitialized memory. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
9f7a9aee37
commit
c5f28d0117
@ -517,7 +517,7 @@ static int virLXCControllerGetNumadAdvice(virLXCControllerPtr ctrl,
|
||||
virBitmapPtr *mask)
|
||||
{
|
||||
virBitmapPtr nodemask = NULL;
|
||||
char *nodeset;
|
||||
char *nodeset = NULL;
|
||||
int ret = -1;
|
||||
|
||||
/* Get the advisory nodeset from numad if 'placement' of
|
||||
|
Loading…
x
Reference in New Issue
Block a user