Windows 10, Visual Studio 2015, OpenCV 4.20 compiled successfully and got memory leak .
Tried:
- Use different versions of OpenCV
- Delay load dll
Code Example:
#include <…opencv2\core.hpp>
cv::Mat mat;
Memory leak Message:
Detected memory leaks!
Dumping objects →
{7183} normal block at 0x00000148263D8480, 16 bytes long.
Data: 78 06 05 7F FE 7F 00 00 00 00 00 00 00 00 00 00
{7182} normal block at 0x00000148263D8110, 16 bytes long.
Data: < > F0 06 05 7F FE 7F 00 00 00 00 00 00 00 00 00 00
{7181} normal block at 0x00000148263D80C0, 16 bytes long.
Data: < > A0 06 05 7F FE 7F 00 00 00 00 00 00 00 00 00 00