ostest: rwlock need to be destroy

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5 2023-04-25 08:44:26 +08:00 committed by Alan Carvalho de Assis
parent 44e5a5ecd7
commit dd20ae28cb

View File

@ -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);
}
/****************************************************************************