sim-card
/
qemu
Archived
10
0
Fork 0

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:
Stefan Weil 2011-10-02 18:53:09 +02:00 committed by Stefan Hajnoczi
parent 297d1b4e9d
commit 5354d08312
1 changed files with 1 additions and 1 deletions

View File

@ -1538,7 +1538,7 @@ int text_console_init(QemuOpts *opts, CharDriverState **_chr)
}
if (!s) {
free(chr);
g_free(chr);
return -EBUSY;
}