[SCM] Socket Wrapper Repository - branch master updated

Andreas Schneider asn at samba.org
Fri May 4 06:42:11 UTC 2018


The branch, master has been updated
       via  321833e tests: Fix resouce leak in echo_srv tcp handling
      from  7b01e29 cmake: Run threaded tests with helgrind

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


- Log -----------------------------------------------------------------
commit 321833e2696f1964eef6ff1bfa2455da735a372a
Author: Andreas Schneider <asn at samba.org>
Date:   Fri May 4 08:01:29 2018 +0200

    tests: Fix resouce leak in echo_srv tcp handling
    
    CID 175587
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Michael Adam <obnox at samba.org>

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

Summary of changes:
 tests/echo_srv.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/tests/echo_srv.c b/tests/echo_srv.c
index 2f877f4..771904a 100644
--- a/tests/echo_srv.c
+++ b/tests/echo_srv.c
@@ -534,9 +534,8 @@ static void echo_tcp(int sock)
             }
             close(s);
             exit(0);
-        } else {
-            close(s);
         }
+        close(s);
     }
 
 done:


-- 
Socket Wrapper Repository



More information about the samba-cvs mailing list