aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/bt-l2cap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/bt-l2cap.c b/hw/bt-l2cap.c
index 4697f529dc..70d731e61b 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)