aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-25 13:48:59 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-25 13:48:59 +0000
commit653a07b222f76c832625cccbb1a097dde3048422 (patch)
treeec4f26a37989061c0710181c489a0858420fbae5 /hw
parent5be8e1f258f67205555a79af20813d68ac5878e0 (diff)
downloadqemu-653a07b222f76c832625cccbb1a097dde3048422.zip
qemu-653a07b222f76c832625cccbb1a097dde3048422.tar.gz
qemu-653a07b222f76c832625cccbb1a097dde3048422.tar.bz2
Change freeing method because the allocation function was changed in r5532
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5536 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r--hw/bt-hci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/bt-hci.c b/hw/bt-hci.c
index ab11e49..2562f21 100644
--- a/hw/bt-hci.c
+++ b/hw/bt-hci.c
@@ -1135,7 +1135,7 @@ void bt_hci_reset(struct bt_hci_s *hci)
hci->device.inquiry_scan = 0;
hci->device.page_scan = 0;
if (hci->device.lmp_name)
- free((void *) hci->device.lmp_name);
+ qemu_free((void *) hci->device.lmp_name);
hci->device.lmp_name = 0;
hci->device.class[0] = 0x00;
hci->device.class[1] = 0x00;
@@ -1813,7 +1813,7 @@ static void bt_submit_hci(struct HCIInfo *info,
LENGTH_CHECK(change_local_name);
if (hci->device.lmp_name)
- free((void *) hci->device.lmp_name);
+ qemu_free((void *) hci->device.lmp_name);
hci->device.lmp_name = pstrdup(PARAM(change_local_name, name),
sizeof(PARAM(change_local_name, name)));
bt_hci_event_complete_status(hci, HCI_SUCCESS);
@@ -2189,7 +2189,7 @@ static void bt_hci_done(struct HCIInfo *info)
bt_device_done(&hci->device);
if (hci->device.lmp_name)
- free((void *) hci->device.lmp_name);
+ qemu_free((void *) hci->device.lmp_name);
/* Be gentle and send DISCONNECT to all connected peers and those
* currently waiting for us to accept or reject a connection request.