提交 5354d083 编写于 作者: S Stefan Weil 提交者: Stefan Hajnoczi

Fix mismatching allocation and deallocation

This error was reported by cppcheck.
Signed-off-by: NStefan Weil <weil@mail.berlios.de>
Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
上级 297d1b4e
......@@ -1538,7 +1538,7 @@ int text_console_init(QemuOpts *opts, CharDriverState **_chr)
}
if (!s) {
free(chr);
g_free(chr);
return -EBUSY;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册