From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGU0T-0007ig-1g for qemu-devel@nongnu.org; Wed, 28 Jan 2015 09:54:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGU0O-0006GK-2S for qemu-devel@nongnu.org; Wed, 28 Jan 2015 09:54:12 -0500 From: Markus Armbruster Date: Wed, 28 Jan 2015 15:54:02 +0100 Message-Id: <1422456844-13043-3-git-send-email-armbru@redhat.com> In-Reply-To: <1422456844-13043-1-git-send-email-armbru@redhat.com> References: <1422456844-13043-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH 2/4] qemu-option: Pair g_malloc() with g_free(), not free() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org Spotted by Coverity with preview checker ALLOC_FREE_MISMATCH enabled and my "coverity: Model g_free() isn't necessarily free()" model patch applied. Signed-off-by: Markus Armbruster --- util/qemu-option.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/qemu-option.c b/util/qemu-option.c index c779150..d3ab65d 100644 --- a/util/qemu-option.c +++ b/util/qemu-option.c @@ -230,7 +230,7 @@ bool has_help_option(const char *param) } out: - free(buf); + g_free(buf); return result; } @@ -255,7 +255,7 @@ bool is_valid_option_list(const char *param) } out: - free(buf); + g_free(buf); return result; } -- 1.9.3