CppCommon 1.0.5.0
C++ Common Library
Loading...
Searching...
No Matches
memory_leaks.cpp

Memory leaks detection example

#include <iostream>
int main(int argc, char** argv)
{
[[maybe_unused]] int* ptr = nullptr;
// Make some memory leaks
ptr = new int;
ptr = new int[100];
return 0;
}
Memory leaks detecting tool. Include this file to detect memory leaks in release build.