[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 24/46] spapr_vio: Pair g_malloc() with g_free(), not

From: Michael Tokarev
Subject: [Qemu-devel] [PULL 24/46] spapr_vio: Pair g_malloc() with g_free(), not free()
Date: Tue, 10 Feb 2015 09:34:13 +0300

From: Markus Armbruster <address@hidden>

Spotted by Coverity with preview checker ALLOC_FREE_MISMATCH enabled
and my "coverity: Model g_free() isn't necessarily free()" model patch

Signed-off-by: Markus Armbruster <address@hidden>
Reviewed-by: Gonglei <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
 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;
-    free(qdevs);
+    g_free(qdevs);
     return ret;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]