Add missing `Dispose()` call on error in `MonoTlsStream.CreateStream()`. (#16233)
commita3c31b9ef7526009d679533264f16c459b24d206
authorMartin Baulig <mabaul@microsoft.com>
Mon, 19 Aug 2019 12:23:28 +0000 (19 08:23 -0400)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 19 Aug 2019 12:23:28 +0000 (19 14:23 +0200)
tree0b419c8dda410a71cc58a2b081b207976a3a1e7e
parent9f790cd5e2c2b5b998ce9ccdf5c4d67d8ad31507
Add missing `Dispose()` call on error in `MonoTlsStream.CreateStream()`. (#16233)

* Add missing `Dispose()` call on error in `MonoTlsStream.CreateStream()`.

* Remove the `finally` block to make it more easy to read.
mcs/class/System/Mono.Net.Security/MonoTlsStream.cs