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

Edited Feature: Memory leaked from SysAllocString() is not detected [10218]

$
0
0
With these three lines allocating memory, only the first two are detected. The line that allocates memory using SysAllocString() does not show as leaked.

```
char* pst = new char[20];
BYTE* pb = (BYTE*) ::CoTaskMemAlloc(20);
BSTR bs = ::SysAllocString(L"hello");

```

Viewing all articles
Browse latest Browse all 704

Trending Articles