NULL out pointers on free.