diff --git a/drivers/nble/conn.c b/drivers/nble/conn.c index 23c184bb26d..348690b199c 100644 --- a/drivers/nble/conn.c +++ b/drivers/nble/conn.c @@ -204,7 +204,9 @@ void on_ble_gap_disconnect_evt(const struct ble_gap_disconnect_evt *ev) BT_DBG("conn %p handle %u", conn, ev->conn_handle); + /* Drop the reference given by lookup_handle() */ bt_conn_unref(conn); + /* Drop the initial reference from conn_new() */ bt_conn_unref(conn); }