Logged In: NO

I'm a tard. That doesnt fix it.
Just need to move the free(newTrackNum); up into the block after the if statement so it only tries to free(newTrackNum); if the malloc() was done.