From db767b6f45ec0b71f28fc004708705e22d8011d6 Mon Sep 17 00:00:00 2001 From: hujun5 Date: Wed, 17 May 2023 20:26:36 +0800 Subject: [PATCH] ostest/sighand_test: sem need to be destroyed Signed-off-by: hujun5 --- testing/ostest/sighand.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testing/ostest/sighand.c b/testing/ostest/sighand.c index de29355ef..82093a11d 100644 --- a/testing/ostest/sighand.c +++ b/testing/ostest/sighand.c @@ -328,4 +328,6 @@ void sighand_test(void) printf("sighand_test: done\n"); FFLUSH(); + sem_destroy(&sem2); + sem_destroy(&sem1); }