mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
conf: Initialize 'deflate' for balloon parse XML
Commit id '7bf3198df' neglected to initialize deflate leading to a possibility if model allocation/checks fail, then the VIR_FREE(deflate) would be erroneous. Noted by Jan Tomko.
This commit is contained in:
parent
f99f79e380
commit
3e2d637458
@ -11354,7 +11354,7 @@ virDomainMemballoonDefParseXML(xmlNodePtr node,
|
|||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
char *model;
|
char *model;
|
||||||
char *deflate;
|
char *deflate = NULL;
|
||||||
virDomainMemballoonDefPtr def;
|
virDomainMemballoonDefPtr def;
|
||||||
xmlNodePtr save = ctxt->node;
|
xmlNodePtr save = ctxt->node;
|
||||||
unsigned int period = 0;
|
unsigned int period = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user