[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 6/7] Fix mismatching allocation and deallocation
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 6/7] Fix mismatching allocation and deallocation |
Date: |
Wed, 5 Oct 2011 09:47:58 +0100 |
From: Stefan Weil <address@hidden>
This error was reported by cppcheck.
Signed-off-by: Stefan Weil <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
console.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/console.c b/console.c
index 6dfcc47..e43de92 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;
}
--
1.7.6.3
- [Qemu-devel] [PULL 0/7] Trivial patches for September 22 to October 5 2011, Stefan Hajnoczi, 2011/10/05
- [Qemu-devel] [PATCH 1/7] makefile: extract tools-obj-y, Stefan Hajnoczi, 2011/10/05
- [Qemu-devel] [PATCH 2/7] gt64xxx.c: fix length modifier in DPRINTF format string, Stefan Hajnoczi, 2011/10/05
- [Qemu-devel] [PATCH 5/7] target-arm: Fix typo, Stefan Hajnoczi, 2011/10/05
- [Qemu-devel] [PATCH 6/7] Fix mismatching allocation and deallocation,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 7/7] linux-user: Remove unused code, Stefan Hajnoczi, 2011/10/05
- [Qemu-devel] [PATCH 4/7] lsi: Fix tag reference in debug print, Stefan Hajnoczi, 2011/10/05
- [Qemu-devel] [PATCH 3/7] gt64xxx.c: remove reference to non-existing ISD_handle field, Stefan Hajnoczi, 2011/10/05
- Re: [Qemu-devel] [PULL 0/7] Trivial patches for September 22 to October 5 2011, Anthony Liguori, 2011/10/10