summaryrefslogtreecommitdiffstats
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
parent3e6da0a081eef2c4498ee045b30392e39a92dc5a (diff)
Use bt_free() instead of free() for inquiry results
-rw-r--r--dund/main.c2
-rw-r--r--hidd/main.c2
-rw-r--r--pand/main.c2
-rw-r--r--tools/ciptool.c4
4 files changed, 5 insertions, 5 deletions
diff --git a/dund/main.c b/dund/main.c
index a620c8de..ca841aeb 100644
--- a/dund/main.c
+++ b/dund/main.c
@@ -348,7 +348,7 @@ static int do_connect(void)
break;
}
}
- free(ii);
+ bt_free(ii);
} while (!terminate && persist);
return r;
diff --git a/hidd/main.c b/hidd/main.c
index 98a8f12a..9ff02705 100644
--- a/hidd/main.c
+++ b/hidd/main.c
@@ -477,7 +477,7 @@ static void do_search(int ctl, bdaddr_t *bdaddr, uint8_t subclass, int nosdp, in
}
}
- free(info);
+ bt_free(info);
if (!num_rsp) {
fprintf(stderr, "\tNo devices in range or visible\n");
diff --git a/pand/main.c b/pand/main.c
index 20fbec19..72e607a9 100644
--- a/pand/main.c
+++ b/pand/main.c
@@ -393,7 +393,7 @@ static int do_connect(void)
break;
}
}
- free(ii);
+ bt_free(ii);
} while (!terminate && persist);
return r;
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);
}