From add8d262035a0c4e3ccad26b4b4a5644f4a66185 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 7 Oct 2011 07:32:47 +0200 Subject: [PATCH] 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 --- block/qcow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- GitLab