diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-01-28 15:54:03 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2015-02-10 09:27:20 +0300 |
commit | 5f1d1fc5928a6f8f63089b3d0768e0dc42c05fbb (patch) | |
tree | 3d55bda025c07da0c79800dbc09559d33078ab2d | |
parent | c0462f6d75fa481f7660c15a5ca3a60205aa4eca (diff) | |
download | qemu-5f1d1fc5928a6f8f63089b3d0768e0dc42c05fbb.zip qemu-5f1d1fc5928a6f8f63089b3d0768e0dc42c05fbb.tar.gz qemu-5f1d1fc5928a6f8f63089b3d0768e0dc42c05fbb.tar.bz2 |
spapr_vio: Pair g_malloc() with g_free(), not free()
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>
Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r-- | hw/ppc/spapr_vio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/spapr_vio.c b/hw/ppc/spapr_vio.c index dc9e46a7..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; } |