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