[4/8] Fix qemu_free use in bt-l2cap.c

Submitted by Jean-Christophe DUBOIS on Nov. 15, 2009, 6:18 p.m.

Details

Message ID 1258309100-29591-4-git-send-email-jcd@tribudubois.net
State New
Headers show

Commit Message

Jean-Christophe DUBOIS Nov. 15, 2009, 6:18 p.m.
bt-l2cap.c is using free() instead of qemu_free().
Fix it.

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
---
 hw/bt-l2cap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

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)