From 70a40106355ab9cb623c0e88cf0d9bb6ceaf922e Mon Sep 17 00:00:00 2001 From: hujun5 Date: Thu, 11 May 2023 21:38:27 +0800 Subject: [PATCH] ostest: sem need to be destroyed Signed-off-by: hujun5 --- 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); }