From dd20ae28cbe83c593513ebb31f5a29ba8b0aa98f Mon Sep 17 00:00:00 2001 From: hujun5 Date: Tue, 25 Apr 2023 08:44:26 +0800 Subject: [PATCH] ostest: rwlock need to be destroy Signed-off-by: hujun5 --- testing/ostest/pthread_rwlock_cancel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testing/ostest/pthread_rwlock_cancel.c b/testing/ostest/pthread_rwlock_cancel.c index fc4447071..c90ec6d42 100644 --- a/testing/ostest/pthread_rwlock_cancel.c +++ b/testing/ostest/pthread_rwlock_cancel.c @@ -257,6 +257,9 @@ static void test_timeout(void) } #endif /* CONFIG_CANCELLATION_POINTS */ #endif /* CONFIG_PTHREAD_CLEANUP */ + + pthread_rwlock_destroy(&write_lock); + pthread_rwlock_destroy(&read_lock); } /****************************************************************************