Some memory were lost on main. Valgrind pick it up