提交 2ed7e7ee 编写于 作者: C Christophe Fergeau

conf: Don't leak 'ram' video property on error

It's only freed on normal returns from virDomainVideoDefParseXML,
but not when erroring out.
上级 9879fce9
...@@ -7736,6 +7736,7 @@ virDomainVideoDefParseXML(const xmlNodePtr node, ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册