ostest: rwlock need to be destroy
Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
parent
44e5a5ecd7
commit
dd20ae28cb
@ -257,6 +257,9 @@ static void test_timeout(void)
|
|||||||
}
|
}
|
||||||
#endif /* CONFIG_CANCELLATION_POINTS */
|
#endif /* CONFIG_CANCELLATION_POINTS */
|
||||||
#endif /* CONFIG_PTHREAD_CLEANUP */
|
#endif /* CONFIG_PTHREAD_CLEANUP */
|
||||||
|
|
||||||
|
pthread_rwlock_destroy(&write_lock);
|
||||||
|
pthread_rwlock_destroy(&read_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
x
Reference in New Issue
Block a user