summaryrefslogtreecommitdiffstats
path: root/src/hci.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hci.c')
-rw-r--r--src/hci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hci.c b/src/hci.c
index dca4c096..f7235f74 100644
--- a/src/hci.c
+++ b/src/hci.c
@@ -94,7 +94,7 @@ static int hci_str2bit(hci_map *map, char *str, unsigned int *val)
static char *hci_uint2str(hci_map *m, unsigned int val)
{
- char *str = bt_malloc(50);
+ char *str = malloc(50);
char *ptr = str;
if (!str)
@@ -174,7 +174,7 @@ static hci_map dev_flags_map[] = {
char *hci_dflagstostr(uint32_t flags)
{
- char *str = malloc(50);
+ char *str = bt_malloc(50);
char *ptr = str;
hci_map *m = dev_flags_map;
@@ -283,7 +283,7 @@ static hci_map link_mode_map[] = {
char *hci_lmtostr(unsigned int lm)
{
- char *s, *str = malloc(50);
+ char *s, *str = bt_malloc(50);
if (!str)
return NULL;
@@ -293,7 +293,7 @@ char *hci_lmtostr(unsigned int lm)
s = hci_bit2str(link_mode_map, lm);
if (!s) {
- free(str);
+ bt_free(str);
return NULL;
}