提交 27fc6782 编写于 作者: J Jim Meyering

virsh.c: avoid leak on OOM error path

* tools/virsh.c (cmdCPUBaseline): Also free "buffer" and "list" upon OOM.
上级 72919f3d
......@@ -7139,6 +7139,8 @@ cleanup:
return ret;
no_memory:
VIR_FREE(list);
VIR_FREE(buffer);
vshError(ctl, "%s", _("Out of memory"));
ret = FALSE;
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册