[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 7/7] block/qcow: Fix use of free() instead of g_free
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 7/7] block/qcow: Fix use of free() instead of g_free() |
Date: |
Fri, 14 Oct 2011 15:11:27 +0100 |
From: Stefan Weil <address@hidden>
cppcheck reported this error:
qemu/block/qcow.c:599: error: Mismatching allocation and deallocation:
cluster_data
Signed-off-by: Stefan Weil <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
block/qcow.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/block/qcow.c b/block/qcow.c
index c8bfecc..eba5a04 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;
}
--
1.7.6.3
- [Qemu-devel] [PULL 0/7] Trivial patches for October 6 to 14 2011, Stefan Hajnoczi, 2011/10/14
- [Qemu-devel] [PATCH 6/7] sheepdog: correct spelling, Stefan Hajnoczi, 2011/10/14
- [Qemu-devel] [PATCH 3/7] arm_pic: Fix typo, Stefan Hajnoczi, 2011/10/14
- [Qemu-devel] [PATCH 5/7] tcg: Fix spelling in comment (varables -> variables), Stefan Hajnoczi, 2011/10/14
- [Qemu-devel] [PATCH 7/7] block/qcow: Fix use of free() instead of g_free(),
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 4/7] remove hpet.h, Stefan Hajnoczi, 2011/10/14
- [Qemu-devel] [PATCH 1/7] qemu-options: avoid #if in spicevmc texi help, Stefan Hajnoczi, 2011/10/14
- [Qemu-devel] [PATCH 2/7] qemu-char: Fix use of free() instead of g_free(), Stefan Hajnoczi, 2011/10/14
- Re: [Qemu-devel] [PULL 0/7] Trivial patches for October 6 to 14 2011, Anthony Liguori, 2011/10/14