diff options
author | Stefan Weil <weil@mail.berlios.de> | 2011-10-02 18:53:09 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-10-05 09:23:00 +0100 |
commit | 5354d08312c1fdc752a498a9857e913a890c4e10 (patch) | |
tree | dff9c108fa27c660c630991c8c3011f37446a5ac /console.c | |
parent | 297d1b4e9ddff27067e773d0945362622415fd76 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1538,7 +1538,7 @@ int text_console_init(QemuOpts *opts, CharDriverState **_chr) } if (!s) { - free(chr); + g_free(chr); return -EBUSY; } |