From: Stefan Weil Date: Fri, 7 Oct 2011 05:32:47 +0000 (+0200) Subject: block/qcow: Fix use of free() instead of g_free() X-Git-Tag: qemu-xen-4.2.0~312^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=add8d262035a0c4e3ccad26b4b4a5644f4a66185;p=qemu-xen.git block/qcow: Fix use of free() instead of g_free() cppcheck reported this error: qemu/block/qcow.c:599: error: Mismatching allocation and deallocation: cluster_data Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- diff --git a/block/qcow.c b/block/qcow.c index c8bfecc1cb..eba5a04c44 100644 --- a/block/qcow.c +++ b/block/qcow.c @@ -596,7 +596,7 @@ static int qcow_co_writev(BlockDriverState *bs, int64_t sector_num, if (qiov->niov > 1) { qemu_vfree(orig_buf); } - free(cluster_data); + g_free(cluster_data); return ret; }