mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
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>
This commit is contained in:
parent
7acae208ca
commit
add8d26203
1 changed files with 1 additions and 1 deletions
|
@ -596,7 +596,7 @@ static int qcow_co_writev(BlockDriverState *bs, int64_t sector_num,
|
||||||
if (qiov->niov > 1) {
|
if (qiov->niov > 1) {
|
||||||
qemu_vfree(orig_buf);
|
qemu_vfree(orig_buf);
|
||||||
}
|
}
|
||||||
free(cluster_data);
|
g_free(cluster_data);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue