From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:41298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RC33r-0000aH-0D for qemu-devel@nongnu.org; Fri, 07 Oct 2011 01:33:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RC33p-0002l9-TC for qemu-devel@nongnu.org; Fri, 07 Oct 2011 01:33:30 -0400 From: Stefan Weil Date: Fri, 7 Oct 2011 07:32:47 +0200 Message-Id: <1317965567-6781-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] block/qcow: Fix use of free() instead of g_free() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Kevin Wolf , Stefan Weil cppcheck reported this error: qemu/block/qcow.c:599: error: Mismatching allocation and deallocation: cluster_data Signed-off-by: Stefan Weil --- 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.2.5