mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user