提交 3f0713a0 编写于 作者: J Ján Tomko

tests: qemuMonitorTestAddUnexpectedErrorResponse: VIR_AUTOFREE

Signed-off-by: NJán Tomko <jtomko@redhat.com>
上级 f6d1e243
......@@ -160,16 +160,12 @@ static int
qemuMonitorTestAddUnexpectedErrorResponse(qemuMonitorTestPtr test,
const char *command)
{
char *msg;
int ret;
VIR_AUTOFREE(char *) msg = NULL;
if (virAsprintf(&msg, "unexpected command: '%s'", command) < 0)
return -1;
ret = qemuMonitorTestAddErrorResponse(test, msg);
VIR_FREE(msg);
return ret;
return qemuMonitorTestAddErrorResponse(test, msg);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册