Making sure stream is closed when exception is thrown
authorHenric Müller <hemuller@microsoft.com>
Wed, 5 Oct 2016 12:43:06 +0000 (14:43 +0200)
committerHenric Müller <hemuller@microsoft.com>
Tue, 11 Oct 2016 11:25:48 +0000 (13:25 +0200)
commitfd76523f6a33845d62ec51c95ef9e5054c8939c6
treebe0e3f8283e5ceed4edfb54fbb1ca24dc71683d6
parent6676f790a8959d9e926181da796e7a3943822d1f
Making sure stream is closed when exception is thrown

Stream will never be closed if we throw exception in Open
which leads to file being locked in Windows and that we
leak file handles.
mcs/class/WindowsBase/System.IO.Packaging/Package.cs [changed mode: 0644->0755]