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

Edited Issue: VLD does not catch leak caused by some CRT functions in the /MDd [9617]

$
0
0
VLD does not catch leak caused by some CRT functions in the /MDd

Steps to reproduce:
1. Create file with following content:
```
#include <vld.h>
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char* argv[])
{
char *s = tmpnam( NULL );
return 0;
}
```

2. Compile it with /MDd switch
3. Run

Expected: lost string are detected

Unsupported functions:
_tempnam, _wtempnam, tmpnam, _wtmpnam _tempnam_dbg, _wtempnam_dbg
_fullpath, _wfullpath _fullpath_dbg, _wfullpath_dbg
_getcwd, _wgetcwd _getdcwd_dbg, _wgetdcwd_dbg
_getdcwd, _wgetdcwd _getdcwd_dbg, _wgetdcwd_dbg
_dupenv_s, _wdupenv_s _dupenv_s_dbg, _wdupenv_s_dbg
_mbsdup


Viewing all articles
Browse latest Browse all 704

Trending Articles