mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-05 12:35:20 +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:
|
error:
|
||||||
virDomainVideoDefFree(def);
|
virDomainVideoDefFree(def);
|
||||||
VIR_FREE(type);
|
VIR_FREE(type);
|
||||||
|
VIR_FREE(ram);
|
||||||
VIR_FREE(vram);
|
VIR_FREE(vram);
|
||||||
VIR_FREE(heads);
|
VIR_FREE(heads);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user