mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 13:05:27 +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 5fa3d775a9f8cdb3423373eb084219aaf778df11
This commit is contained in:
parent
5d4b0c4c80
commit
15fd90b641
@ -6430,7 +6430,8 @@ virDomainDefParseBootXML(xmlXPathContextPtr ctxt,
|
||||
{
|
||||
xmlNodePtr *nodes = NULL;
|
||||
int i, n;
|
||||
char *bootstr, *useserial;
|
||||
char *bootstr;
|
||||
char *useserial = NULL;
|
||||
int ret = -1;
|
||||
unsigned long deviceBoot, serialPorts;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user