Diff between a796a6066f64e8801d8cf7cf1053c171c5055435 and 5cc4a1729b1473c1c00c947bbf119a78bc83647f

Changed Files

File Additions Deletions Status
tools/btattach.c +2 -1 modified

Full Patch

diff --git a/tools/btattach.c b/tools/btattach.c
index 3530774..a025bb0 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;