summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bluetooth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bluetooth.c b/src/bluetooth.c
index 1c01e2d9..9ba19c50 100644
--- a/src/bluetooth.c
+++ b/src/bluetooth.c
@@ -54,7 +54,7 @@ void baswap(bdaddr_t *dst, const bdaddr_t *src)
char *batostr(const bdaddr_t *ba)
{
- char *str = malloc(18);
+ char *str = bt_malloc(18);
if (!str)
return NULL;
@@ -69,7 +69,7 @@ bdaddr_t *strtoba(const char *str)
const char *ptr = str;
int i;
- uint8_t *ba = malloc(sizeof(bdaddr_t));
+ uint8_t *ba = bt_malloc(sizeof(bdaddr_t));
if (!ba)
return NULL;