summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-08-06 06:42:20 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-08-06 06:42:20 +0000
commit7ba9b7fda144865222a5d254b36bf484d5af99e7 (patch)
treef0524211ba6906851a4d6a25e138ffa05f3df976 /tools
parent3e6da0a081eef2c4498ee045b30392e39a92dc5a (diff)
Use bt_free() instead of free() for inquiry results
Diffstat (limited to 'tools')
-rw-r--r--tools/ciptool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ciptool.c b/tools/ciptool.c
index 38446f93..263e0573 100644
--- a/tools/ciptool.c
+++ b/tools/ciptool.c
@@ -256,7 +256,7 @@ static void cmd_search(int ctl, bdaddr_t *bdaddr, int argc, char **argv)
if (!get_psm(&src, &dst, &psm))
continue;
- free(info);
+ bt_free(info);
printf("\tConnecting to device %s\n", addr);
do_connect(ctl, dev_id, &src, &dst, psm, 0);
@@ -264,7 +264,7 @@ static void cmd_search(int ctl, bdaddr_t *bdaddr, int argc, char **argv)
}
}
- free(info);
+ bt_free(info);
fprintf(stderr, "\tNo devices in range or visible\n");
exit(1);
}