This is an automated email from the ASF dual-hosted git repository.
acassis 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 dd20ae28c ostest: rwlock need to be destroy
dd20ae28c is described below
commit dd20ae28cbe83c593513ebb31f5a29ba8b0aa98f
Author: hujun5 <[email protected]>
AuthorDate: Tue Apr 25 08:44:26 2023 +0800
ostest: rwlock need to be destroy
Signed-off-by: hujun5 <[email protected]>
---
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);
}
/****************************************************************************