提交 20d3c483 编写于 作者: J Ján Tomko

tests: qemuMonitorReportError: use VIR_AUTOFREE

Signed-off-by: NJán Tomko <jtomko@redhat.com>
上级 6d11c756
......@@ -197,8 +197,8 @@ qemuMonitorReportError(qemuMonitorTestPtr test, const char *errmsg, ...)
{
va_list msgargs;
VIR_AUTOFREE(char *) tmp = NULL;
char *msg = NULL;
char *jsonmsg = NULL;
VIR_AUTOFREE(char *) msg = NULL;
VIR_AUTOFREE(char *) jsonmsg = NULL;
int ret = -1;
va_start(msgargs, errmsg);
......@@ -219,8 +219,6 @@ qemuMonitorReportError(qemuMonitorTestPtr test, const char *errmsg, ...)
cleanup:
va_end(msgargs);
VIR_FREE(msg);
VIR_FREE(jsonmsg);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册