id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 3474,Memory leak due to exception safety issue,lee@…,Beman Dawes,"The following code fragment form file 'libs/filesystem/src/exception.cpp' may leak memory if an exception is thrown while assigning 'lpMsgBuf' to 'target': {{{ void system_message(system_error_type sys_err_code, std::string& target) { LPVOID lpMsgBuf; ::FormatMessageA( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, sys_err_code, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language (LPSTR) &lpMsgBuf, 0, NULL ); target += static_cast(lpMsgBuf); ::LocalFree( lpMsgBuf ); // free the buffer //... }}} ",Bugs,closed,To Be Determined,system,Boost 1.35.0,Problem,fixed,,