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:
Daniel P. Berrange 2013-03-22 11:44:00 +00:00
parent 9f7a9aee37
commit c5f28d0117

View File

@ -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