diff --git a/cgi.d b/cgi.d index d6f422d..aad9760 100644 --- a/cgi.d +++ b/cgi.d @@ -5207,7 +5207,7 @@ private class FakeSocketForStdin : Socket { return buffer.length; } - override void close() @trusted { + override void close() @trusted scope { (cast(void delegate() @nogc nothrow) &realClose)(); } diff --git a/http2.d b/http2.d index 32a2281..8d066fa 100644 --- a/http2.d +++ b/http2.d @@ -3972,7 +3972,7 @@ version(use_openssl) { initSsl(verifyPeer, hostname); } - override void close() { + override void close() scope { if(ssl) OpenSSL.SSL_shutdown(ssl); super.close(); }