Set some pointers to NULL after free.