Initializer lists leaking memory - by Andreas Magnusson

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 807419 Comments
Status Closed Workarounds
Type Bug Repros 2
Opened 11/1/2013 6:33:58 AM
Access Restriction Public


If a std::vector<std::vector<std::string>> is initialized with an initializer list that contains at least two std::vector<std::string>:s there will be memory leaks.

A pretty minimal repro-case has been provided.
Sign in to post a comment.
Posted by Niels Dekker on 6/10/2014 at 9:04 AM
Thanks! Eric Battalio (Microsoft) confirmed in a comment at that this bug fix is included with Visual Studio 2013 Update 2. Cool!
Posted by Xiang [MSFT] on 11/25/2013 at 2:35 PM
    Thanks for reporting the issue.
    A fix for this issue has been checked into the compiler sources. The fix should show up in the future release of Visual C++.

Xiang Fan
Visual C++ Team
Posted by Jasperb00 on 11/24/2013 at 2:11 AM
I got a similar problem, I had a crash on a double delete in a initializer list. I recreated a minimal example on .
Posted by Macy [MSFT] on 11/3/2013 at 9:14 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Macy [MSFT] on 11/1/2013 at 6:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(