From: Jean-Christophe DUBOIS Date: Sun, 15 Nov 2009 18:18:16 +0000 (+0100) Subject: Fix qemu_free use in bt-l2cap.c X-Git-Tag: qemu-xen-4.3.0-rc1~6645 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2db69b23723a9353ccf6bd70f4f33e071ff9251e;p=qemu-upstream-4.6-testing.git Fix qemu_free use in bt-l2cap.c bt-l2cap.c is using free() instead of qemu_free(). Fix it. Signed-off-by: Jean-Christophe DUBOIS Signed-off-by: Anthony Liguori --- diff --git a/hw/bt-l2cap.c b/hw/bt-l2cap.c index 4697f529d..70d731e61 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)