提交 dca81d04 编写于 作者: J Jiri Denemark

virsh.c: avoid all leaks in OOM path in cmdCPUBaseline

Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
上级 9568c1d9
......@@ -7140,11 +7140,9 @@ cleanup:
return ret;
no_memory:
VIR_FREE(list);
VIR_FREE(buffer);
vshError(ctl, "%s", _("Out of memory"));
ret = FALSE;
return ret;
goto cleanup;
}
/* Common code for the edit / net-edit / pool-edit functions which follow. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册