From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> --- tools/btinfo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/btinfo.c b/tools/btinfo.c index 0f0dfad..aa4df5a 100644 --- a/tools/btinfo.c +++ b/tools/btinfo.c @@ -359,6 +359,8 @@ int main(int argc, char *argv[]) if (ioctl(fd, HCIDEVDOWN, hci_info.dev_id) < 0) perror("Failed to power down controller"); + + close(fd); } } -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html