From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40986) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAPIg-0000L1-Qg for qemu-devel@nongnu.org; Sun, 02 Oct 2011 12:54:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RAPIf-0006aQ-Io for qemu-devel@nongnu.org; Sun, 02 Oct 2011 12:54:02 -0400 From: Stefan Weil Date: Sun, 2 Oct 2011 18:53:09 +0200 Message-Id: <1317574389-15007-1-git-send-email-weil@mail.berlios.de> Subject: [Qemu-devel] [PATCH] Fix mismatching allocation and deallocation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org This error was reported by cppcheck. Signed-off-by: Stefan Weil --- 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.2.5