AddressSanitizer

g++ -fsanitize=address -fsanitize=leak test.cpp -o test