From: Markus Armbruster <armbru@redhat.com>
To: qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org
Subject: [Qemu-devel] [PATCH 3/4] spapr_vio: Pair g_malloc() with g_free(), not free()
Date: Wed, 28 Jan 2015 15:54:03 +0100 [thread overview]
Message-ID: <1422456844-13043-4-git-send-email-armbru@redhat.com> (raw)
In-Reply-To: <1422456844-13043-1-git-send-email-armbru@redhat.com>
Spotted by Coverity with preview checker ALLOC_FREE_MISMATCH enabled
and my "coverity: Model g_free() isn't necessarily free()" model patch
applied.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
hw/ppc/spapr_vio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/ppc/spapr_vio.c b/hw/ppc/spapr_vio.c
index dc9e46a..032ee1a 100644
--- a/hw/ppc/spapr_vio.c
+++ b/hw/ppc/spapr_vio.c
@@ -648,7 +648,7 @@ int spapr_populate_vdevice(VIOsPAPRBus *bus, void *fdt)
ret = 0;
out:
- free(qdevs);
+ g_free(qdevs);
return ret;
}
--
1.9.3
next prev parent reply other threads:[~2015-01-28 14:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-28 14:54 [Qemu-devel] [PATCH 0/4] Pair g_malloc() with g_free(), not free() Markus Armbruster
2015-01-28 14:54 ` [Qemu-devel] [PATCH 1/4] qemu-option: Replace pointless use of g_malloc0() by g_malloc() Markus Armbruster
2015-01-29 0:20 ` Gonglei
2015-01-28 14:54 ` [Qemu-devel] [PATCH 2/4] qemu-option: Pair g_malloc() with g_free(), not free() Markus Armbruster
2015-01-29 0:20 ` Gonglei
2015-01-28 14:54 ` Markus Armbruster [this message]
2015-01-29 0:20 ` [Qemu-devel] [PATCH 3/4] spapr_vio: " Gonglei
2015-01-28 14:54 ` [Qemu-devel] [PATCH 4/4] usb: " Markus Armbruster
2015-01-29 0:22 ` Gonglei
2015-01-28 15:13 ` [Qemu-devel] [PATCH 0/4] " Eric Blake
2015-02-04 9:43 ` Markus Armbruster
2015-02-07 13:30 ` Michael Tokarev
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=1422456844-13043-4-git-send-email-armbru@redhat.com \
--to=armbru@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/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).