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 2023/05/16 03:59:15 UTC
[nuttx-apps] branch master updated: ostest: sem need to be destroyed
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/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 70a401063 ostest: sem need to be destroyed
70a401063 is described below
commit 70a40106355ab9cb623c0e88cf0d9bb6ceaf922e
Author: hujun5 <hu...@xiaomi.com>
AuthorDate: Thu May 11 21:38:27 2023 +0800
ostest: sem need to be destroyed
Signed-off-by: hujun5 <hu...@xiaomi.com>
---
testing/ostest/sem.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/testing/ostest/sem.c b/testing/ostest/sem.c
index a1107b20b..6a3bc1385 100644
--- a/testing/ostest/sem.c
+++ b/testing/ostest/sem.c
@@ -314,4 +314,6 @@ void sem_test(void)
pthread_join(poster_thread, NULL);
}
#endif
+
+ sem_destroy(&sem);
}