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: v1.0-rc0~128^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=add8d262035a0c4e3ccad26b4b4a5644f4a66185;p=thirdparty%2Fqemu.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 c8bfecc1cb3..eba5a04c44b 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; }