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");
```
Comments: you can simply add ForceIncludeModules = oleaut32.dll to your vld.ini files and these leaks and variant api and safearryapi leaks will be detected by vld.
```
char* pst = new char[20];
BYTE* pb = (BYTE*) ::CoTaskMemAlloc(20);
BSTR bs = ::SysAllocString(L"hello");
```
Comments: you can simply add ForceIncludeModules = oleaut32.dll to your vld.ini files and these leaks and variant api and safearryapi leaks will be detected by vld.