You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/11/20 17:16:05 UTC

[incubator-nuttx] 10/10: wireless/bluetooth: destroy nxsem properly

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 3e1c73f8c9f8f9e6b2ac039d601c4055973e8282
Author: chao an <an...@xiaomi.com>
AuthorDate: Sun Nov 20 23:16:37 2022 +0800

    wireless/bluetooth: destroy nxsem properly
---
 wireless/bluetooth/bt_hcicore.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/wireless/bluetooth/bt_hcicore.c b/wireless/bluetooth/bt_hcicore.c
index 9db624715d..55b1d78000 100644
--- a/wireless/bluetooth/bt_hcicore.c
+++ b/wireless/bluetooth/bt_hcicore.c
@@ -1846,6 +1846,8 @@ int bt_hci_cmd_send_sync(uint16_t opcode, FAR struct bt_buf_s *buf,
       bt_buf_release(buf->u.hci.sync);
     }
 
+  nxsem_destroy(&sync_sem);
+
   return ret;
 }