projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7acae20
)
block/qcow: Fix use of free() instead of g_free()
author
Stefan Weil
<sw@weilnetz.de>
Fri, 7 Oct 2011 05:32:47 +0000
(07:32 +0200)
committer
Stefan Hajnoczi
<stefanha@linux.vnet.ibm.com>
Fri, 14 Oct 2011 13:57:46 +0000
(14:57 +0100)
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>
block/qcow.c
patch
|
blob
|
history
diff --git
a/block/qcow.c
b/block/qcow.c
index c8bfecc1cb3c4356c2473c15159fd9a425b23a2e..eba5a04c44b8a7b9cee21f2135a033d1a8d3e293 100644
(file)
--- 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;
}