Added the uncommented leak

there is a leak in main.cpp::main