mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 19:45:21 +00:00
conf: Don't leak 'ram' video property on error
It's only freed on normal returns from virDomainVideoDefParseXML, but not when erroring out.
This commit is contained in:
parent
9879fce9f6
commit
2ed7e7eedc
@ -7736,6 +7736,7 @@ virDomainVideoDefParseXML(const xmlNodePtr node,
|
||||
error:
|
||||
virDomainVideoDefFree(def);
|
||||
VIR_FREE(type);
|
||||
VIR_FREE(ram);
|
||||
VIR_FREE(vram);
|
||||
VIR_FREE(heads);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user