diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-08-23 15:05:30 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-08-23 15:05:30 +0000 |
commit | 21f2a5244f0c6195e17ff71868328bc71d77f4d9 (patch) | |
tree | 2a4eefb83c7cfbf01e30b15f501e68360647ce79 /src/hci.c | |
parent | 1e5d92c257fb56ba0ade1ba010b875e816913c56 (diff) |
Fix malloc() versus bt_malloc() usage
Diffstat (limited to 'src/hci.c')
-rw-r--r-- | src/hci.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |