summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2011-10-02 18:53:09 +0200
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-10-05 09:23:00 +0100
commit5354d08312c1fdc752a498a9857e913a890c4e10 (patch)
treedff9c108fa27c660c630991c8c3011f37446a5ac /console.c
parent297d1b4e9ddff27067e773d0945362622415fd76 (diff)
downloadqemu-5354d08312c1fdc752a498a9857e913a890c4e10.tar.gz
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>
Diffstat (limited to 'console.c')
-rw-r--r--console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console.c b/console.c
index 6dfcc47940..e43de92c00 100644
--- a/console.c
+++ b/console.c
@@ -1538,7 +1538,7 @@ int text_console_init(QemuOpts *opts, CharDriverState **_chr)
}
if (!s) {
- free(chr);
+ g_free(chr);
return -EBUSY;
}