c Pointer Dangling Maclloc vs New valgrind