ostest: sem need to be destroyed
Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
parent
6b01cce1aa
commit
70a4010635
@ -314,4 +314,6 @@ void sem_test(void)
|
|||||||
pthread_join(poster_thread, NULL);
|
pthread_join(poster_thread, NULL);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
sem_destroy(&sem);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user