pointers which are freed are now cleanly set to 0 afterwards.