check for null, and set to null after free.