summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-05-04 08:01:29 +0200
committerAndreas Schneider <asn@samba.org>2018-05-04 08:41:55 +0200
commit321833e2696f1964eef6ff1bfa2455da735a372a (patch)
tree85adcb7317feb1de22ec71cfe7cec0c61b24a605
parent7b01e29d2c95216c842b56b89c88e900cfb4991b (diff)
downloadsocket_wrapper-321833e2696f1964eef6ff1bfa2455da735a372a.tar.gz
socket_wrapper-321833e2696f1964eef6ff1bfa2455da735a372a.tar.xz
socket_wrapper-321833e2696f1964eef6ff1bfa2455da735a372a.zip
tests: Fix resouce leak in echo_srv tcp handling
CID 175587 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--tests/echo_srv.c3
1 files changed, 1 insertions, 2 deletions
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: