mirror of
https://github.com/xemu-project/xemu.git
synced 2025-04-02 11:11:48 -04:00
Fix mismatching allocation and deallocation
This error was reported by cppcheck. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
parent
297d1b4e9d
commit
5354d08312
1 changed files with 1 additions and 1 deletions
|
@ -1538,7 +1538,7 @@ int text_console_init(QemuOpts *opts, CharDriverState **_chr)
|
|||
}
|
||||
|
||||
if (!s) {
|
||||
free(chr);
|
||||
g_free(chr);
|
||||
return -EBUSY;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue