diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2015-09-14 10:04:13 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2015-09-14 10:04:27 +0300 |
commit | 5cc4a1729b1473c1c00c947bbf119a78bc83647f (patch) | |
tree | 581a86f6109aa7d7ba9b9e9b26408d6b269941bc /tools | |
parent | a796a6066f64e8801d8cf7cf1053c171c5055435 (diff) | |
download | bluez-5cc4a1729b1473c1c00c947bbf119a78bc83647f.tar.gz |
tools/btattach: Fix leak of bt_hci object
Diffstat (limited to 'tools')
-rw-r--r-- | tools/btattach.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/btattach.c b/tools/btattach.c index 3530774af..a025bb07f 100644 --- a/tools/btattach.c +++ b/tools/btattach.c @@ -154,7 +154,8 @@ static int attach_proto(const char *path, unsigned int proto, } bt_hci_send(hci, BT_HCI_CMD_READ_LOCAL_VERSION, NULL, 0, - local_version_callback, NULL, NULL); + local_version_callback, hci, + (bt_hci_destroy_func_t) bt_hci_unref); } return fd; |