mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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 *mask)
|
||||||
{
|
{
|
||||||
virBitmapPtr nodemask = NULL;
|
virBitmapPtr nodemask = NULL;
|
||||||
char *nodeset;
|
char *nodeset = NULL;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
/* Get the advisory nodeset from numad if 'placement' of
|
/* Get the advisory nodeset from numad if 'placement' of
|
||||||
|
Loading…
Reference in New Issue
Block a user