mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
conf: Don't free uninitialized pointer
This causes libvirtd to crash when both <boot dev='...'/> and <boot
order='...'/> are used in one domain XML. Introduced by
5fa3d775a9
This commit is contained in:
parent
5d4b0c4c80
commit
15fd90b641
@ -6430,7 +6430,8 @@ virDomainDefParseBootXML(xmlXPathContextPtr ctxt,
|
|||||||
{
|
{
|
||||||
xmlNodePtr *nodes = NULL;
|
xmlNodePtr *nodes = NULL;
|
||||||
int i, n;
|
int i, n;
|
||||||
char *bootstr, *useserial;
|
char *bootstr;
|
||||||
|
char *useserial = NULL;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
unsigned long deviceBoot, serialPorts;
|
unsigned long deviceBoot, serialPorts;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user