VS 2010 (1) 썸네일형 리스트형 Visual Studio 2010에서 std::vector<std::string>::insert 메모리 릭 inserting in a std::vector of std::string causes memory leak 위와 같은 보고가 있었군요. 요약을 하자면 아래 코드를 실행 하면 메모리 릭이 발생한다는 것. #include "stdafx.h" #include #include int _tmain(int argc, _TCHAR* argv[]) { // debug memory leaks _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF ); { std::vector vec; vec.reserve(3); vec.push_back("1"); vec.insert(vec.begin(), 2, "2"); } return 0; } VS 2010 SP1에서 패치 되.. 이전 1 다음