Quantcast
Channel: Visual Leak Detector for Visual C++ 2008-2015
Viewing all articles
Browse latest Browse all 704

New Post: CString variable leak ?

$
0
0
CString strVal;
CString strAbsFile;
TCHAR dir[I_MAX_PATH];
I_CHAR retVal[2048];;
memset( dir, 0, I_MAX_PATH);
memset( retVal, 0, 2048);
IAGetWorkDir( dir);
strAbsFile.Format( _T("%s%s"), dir, strFile);
IAGetPrivateProfileString( strSection.GetBuffer(0), strKey.GetBuffer(0), NULL, retVal, 2048,strAbsFile.GetBuffer(0));
strVal = retVal;
return strVal;

Viewing all articles
Browse latest Browse all 704

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>