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 | |
| parent | 297d1b4e9ddff27067e773d0945362622415fd76 (diff) | |
| download | focaccia-qemu-5354d08312c1fdc752a498a9857e913a890c4e10.tar.gz focaccia-qemu-5354d08312c1fdc752a498a9857e913a890c4e10.zip | |
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>
| -rw-r--r-- | console.c | 2 |
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; } |