
On November 5, 2012 6:06:42 AM "Stephan T. Lavavej" <stl@exchange.microsoft.com> wrote:
[Andrey Semashev]
+1, I had reported a memory leak bug [1] to MS and had been told that the behavior is correct as it doesn't contradict the Standard. I can't trust the vendor that treats users this way and declares a memory leak as a valid behavior. I doubt I will ever bother reporting any other bugs in MSVC. [1] The leak appeared in STL streams, if initialized multiple times. Here's a code snippet: https://sourceforge.net/apps/trac/boost-log/ticket/2#comment:4 I didn't keep a reference to the MS bug tracker and I can't find it now.
This was Dev10#831920/Connect#518512. I can't load the Connect link anymore (it is supposed to be http://connect.microsoft.com/VisualStudio/feedback/details/518512/memory-lea... and I don't know why it's broken) but I can still see the comments through Team Foundation Server. This behavior was really, truly conformant to the Standard - I was surprised too, so I had to ask P.J. Plauger for an explanation. Here are the comments:
[snip] Thank you Stephan for digging it out. But I still don't agree with your conclusions and consider it a serious bug.