From patchwork Sun Nov 15 18:18:16 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Christophe Dubois X-Patchwork-Id: 38463 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 91D61B70CF for ; Mon, 16 Nov 2009 05:22:24 +1100 (EST) Received: from localhost ([127.0.0.1]:46955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N9jjx-0004Yj-Cy for incoming@patchwork.ozlabs.org; Sun, 15 Nov 2009 13:22:21 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N9jgS-0003ZV-VC for qemu-devel@nongnu.org; Sun, 15 Nov 2009 13:18:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N9jgN-0003Vm-8W for qemu-devel@nongnu.org; Sun, 15 Nov 2009 13:18:43 -0500 Received: from [199.232.76.173] (port=46594 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N9jgM-0003VY-Pd for qemu-devel@nongnu.org; Sun, 15 Nov 2009 13:18:38 -0500 Received: from smtp6-g21.free.fr ([212.27.42.6]:44050) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N9jgL-0003gR-LO for qemu-devel@nongnu.org; Sun, 15 Nov 2009 13:18:38 -0500 Received: from smtp6-g21.free.fr (localhost [127.0.0.1]) by smtp6-g21.free.fr (Postfix) with ESMTP id 63574E0808B; Sun, 15 Nov 2009 19:18:32 +0100 (CET) Received: from localhost.localdomain (unknown [78.235.240.156]) by smtp6-g21.free.fr (Postfix) with ESMTP id 5C1E5E08163; Sun, 15 Nov 2009 19:18:30 +0100 (CET) From: Jean-Christophe DUBOIS To: qemu-devel@nongnu.org Date: Sun, 15 Nov 2009 19:18:16 +0100 Message-Id: <1258309100-29591-4-git-send-email-jcd@tribudubois.net> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1258309100-29591-3-git-send-email-jcd@tribudubois.net> References: <1258309100-29591-1-git-send-email-jcd@tribudubois.net> <1258309100-29591-2-git-send-email-jcd@tribudubois.net> <1258309100-29591-3-git-send-email-jcd@tribudubois.net> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Jean-Christophe DUBOIS Subject: [Qemu-devel] [PATCH 4/8] Fix qemu_free use in bt-l2cap.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org bt-l2cap.c is using free() instead of qemu_free(). Fix it. Signed-off-by: Jean-Christophe DUBOIS --- hw/bt-l2cap.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/bt-l2cap.c b/hw/bt-l2cap.c index 4697f52..70d731e 100644 --- a/hw/bt-l2cap.c +++ b/hw/bt-l2cap.c @@ -1218,7 +1218,7 @@ static void l2cap_teardown(struct l2cap_instance_s *l2cap, int send_disconnect) for (cid = L2CAP_CID_ALLOC; cid < L2CAP_CID_MAX; cid ++) if (l2cap->cid[cid]) { l2cap->cid[cid]->params.close(l2cap->cid[cid]->params.opaque); - free(l2cap->cid[cid]); + qemu_free(l2cap->cid[cid]); } if (l2cap->role)