Memory Leak in setlocale
Posted on 2009-07-15
I am making _tsetlocale calls to set the locale information in my application. Memory Leak Analyzer is showing memory leak for the following code:
Its showing memory leak in the following function in the file :
"C:\Program Files\Microsoft Visual Studio 9.0\VC\crt\src\wsetloca.c"
wchar_t * __cdecl _wsetlocale (
const wchar_t *_wlocale
Inside this function its showing leak at the following line:
refcount = (int *)_malloc_crt(size * sizeof(wchar_t) + sizeof(int));
Its showing 58 bytes leak for one call of _tsetlocale.