freeing memory after valgrind check (easy)