From f08cd708b11dd5b293986b92bb5e227731665b36 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 4 Mar 2020 23:26:57 +0900 Subject: [PATCH] Fixed FD leak --- test/net/http/test_https.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb index 64101b6bda..660104d048 100644 --- a/test/net/http/test_https.rb +++ b/test/net/http/test_https.rb @@ -212,6 +212,8 @@ class TestNetHTTPS < Test::Unit::TestCase http.cert_store = TEST_STORE http.verify_hostname = false assert_nothing_raised { http.start } + ensure + http&.finish end end