From 15c1f393251ff4d7c6e19048cbc3d517c411cb7f Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 29 Jul 2015 12:41:09 +0000 Subject: test_pair.rb: thread leak * test/openssl/test_pair.rb (test_ecdh_callback): fix thread leak. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/openssl/test_pair.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/openssl/test_pair.rb') diff --git a/test/openssl/test_pair.rb b/test/openssl/test_pair.rb index cd5d5d8959..5bf74e596d 100644 --- a/test/openssl/test_pair.rb +++ b/test/openssl/test_pair.rb @@ -368,6 +368,7 @@ module OpenSSL::TestPairM sock1.close if sock1 sock2.close if sock2 accepted.close if accepted.respond_to?(:close) + th.join rescue nil end def test_connect_accept_nonblock_no_exception -- cgit v1.2.3