I have applied the patch and here are test results:
/// using original mingw-w64 shared libs - 2 leaked
///
E:\Desktopg++ test.cpp -std=c++11
E:\Desktopa
++exception caught, e = 12345
/// using original mingw-w64 static libs - a
Thank you for checking this.
If I read this right, the leaking that was coming from the exceptions
during static linking was eliminated using this patch. That seems like a
good thing.
There are 2 leaks left, but they are always leaking. I know one of them
is argv[0] (the currently running