aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2011-10-07 07:32:47 +0200
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-10-14 14:57:46 +0100
commitadd8d262035a0c4e3ccad26b4b4a5644f4a66185 (patch)
tree0f99b5aa2c2977e5e2a5083b76a318be50b52691 /block
parent7acae208ca355b4e573b1d1d257276bfdcbc0238 (diff)
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 <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'block')
-rw-r--r--block/qcow.c2
1 files changed, 1 insertions, 1 deletions
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;
}