void free(IStr file = __FILE__, Sz line = __LINE__)
Frees the memory if it is owning it and resets the state.