This is an automated email from the ASF dual-hosted git repository.

xiaoxiang 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 79a111fc1 ostest/mutex: mut need to be destroyed
79a111fc1 is described below

commit 79a111fc1a2cc2ce6f3a31da552fcd6e9c690c3f
Author: hujun5 <[email protected]>
AuthorDate: Wed Aug 2 20:28:33 2023 +0800

    ostest/mutex: mut need to be destroyed
    
    Signed-off-by: hujun5 <[email protected]>
---
 testing/ostest/mutex.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/testing/ostest/mutex.c b/testing/ostest/mutex.c
index 57ad0b9f3..11781c945 100644
--- a/testing/ostest/mutex.c
+++ b/testing/ostest/mutex.c
@@ -156,6 +156,8 @@ void mutex_test(void)
   pthread_join(thread2, NULL);
 #endif
 
+  pthread_mutex_destroy(&mut);
+
   printf("\t\tThread1\tThread2\n");
   printf("\tLoops\t%lu\t%lu\n", nloops[0], nloops[1]);
   printf("\tErrors\t%lu\t%lu\n", nerrors[0], nerrors[1]);

Reply via email to