The branch, master has been updated
       via  523ef552238 pthreadpool: Fix CID 1681387, Error handling issues 
(CHECKED_RETURN)
      from  e02156b0b77 ctdb-doc: add section to manpage for -j/--json option

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 523ef55223857c624dd90c6fe35ece5b7ced5b5b
Author: Anoop C S <[email protected]>
Date:   Thu Feb 19 19:25:20 2026 +0530

    pthreadpool: Fix CID 1681387, Error handling issues (CHECKED_RETURN)
    
    Signed-off-by: Anoop C S <[email protected]>
    Reviewed-by: Andreas Schneider <[email protected]>
    
    Autobuild-User(master): Anoop C S <[email protected]>
    Autobuild-Date(master): Fri Feb 20 08:37:17 UTC 2026 on atb-devel-224

-----------------------------------------------------------------------

Summary of changes:
 lib/pthreadpool/test_pthreadpool_pipe.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/pthreadpool/test_pthreadpool_pipe.c 
b/lib/pthreadpool/test_pthreadpool_pipe.c
index 616b487c77b..50a4d1792a5 100644
--- a/lib/pthreadpool/test_pthreadpool_pipe.c
+++ b/lib/pthreadpool/test_pthreadpool_pipe.c
@@ -49,14 +49,22 @@ static int setup(void **state)
 static int teardown(void **state)
 {
        struct test_state *test_state = *state;
+       int ret = 0;
 
        if (test_state->pool != NULL) {
-               pthreadpool_pipe_destroy(test_state->pool);
+               ret = pthreadpool_pipe_destroy(test_state->pool);
+               if (ret != 0) {
+                       fprintf(stderr, "pthreadpool_pipe_destroy failed: %s\n",
+                               strerror(ret));
+                       ret = -1;
+                       goto done;
+               }
        }
 
+done:
        pthread_mutex_destroy(&test_state->mutex);
        TALLOC_FREE(test_state);
-       return 0;
+       return ret;
 }
 
 /* Job function that uses mutex */


-- 
Samba Shared Repository

Reply via email to