mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +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)
|
||||
{
|
||||
char *model;
|
||||
char *deflate;
|
||||
char *deflate = NULL;
|
||||
virDomainMemballoonDefPtr def;
|
||||
xmlNodePtr save = ctxt->node;
|
||||
unsigned int period = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user