1 2 3 4 5 6 7 8
#include <iostream> void memoryLeak() { std::string* panthere = new std::string("String panthere"); std::cout << *panthere << std::endl; delete panthere; }