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:
Christophe Fergeau 2013-02-21 16:21:31 +01:00
parent 9879fce9f6
commit 2ed7e7eedc

View File

@ -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;