qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
To: qemu-devel@nongnu.org
Cc: Stefan Weil <weil@mail.berlios.de>,
	Anthony Liguori <aliguori@us.ibm.com>,
	Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Subject: [Qemu-devel] [PATCH 6/7] Fix mismatching allocation and deallocation
Date: Wed,  5 Oct 2011 09:47:58 +0100	[thread overview]
Message-ID: <1317804479-5876-7-git-send-email-stefanha@linux.vnet.ibm.com> (raw)
In-Reply-To: <1317804479-5876-1-git-send-email-stefanha@linux.vnet.ibm.com>

From: Stefan Weil <weil@mail.berlios.de>

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>
---
 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

  parent reply	other threads:[~2011-10-05  8:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-05  8:47 [Qemu-devel] [PULL 0/7] Trivial patches for September 22 to October 5 2011 Stefan Hajnoczi
2011-10-05  8:47 ` [Qemu-devel] [PATCH 1/7] makefile: extract tools-obj-y Stefan Hajnoczi
2011-10-05  8:47 ` [Qemu-devel] [PATCH 2/7] gt64xxx.c: fix length modifier in DPRINTF format string Stefan Hajnoczi
2011-10-05  8:47 ` [Qemu-devel] [PATCH 3/7] gt64xxx.c: remove reference to non-existing ISD_handle field Stefan Hajnoczi
2011-10-05  8:47 ` [Qemu-devel] [PATCH 4/7] lsi: Fix tag reference in debug print Stefan Hajnoczi
2011-10-05  8:47 ` [Qemu-devel] [PATCH 5/7] target-arm: Fix typo Stefan Hajnoczi
2011-10-05  8:47 ` Stefan Hajnoczi [this message]
2011-10-05  8:47 ` [Qemu-devel] [PATCH 7/7] linux-user: Remove unused code Stefan Hajnoczi
2011-10-10 14:44 ` [Qemu-devel] [PULL 0/7] Trivial patches for September 22 to October 5 2011 Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1317804479-5876-7-git-send-email-stefanha@linux.vnet.ibm.com \
    --to=stefanha@linux.vnet.ibm.com \
    --cc=aliguori@us.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=weil@mail.berlios.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).