Release all memory used by the obj structure.
As a result of this call, obj->data will be set to NULL.
If obj->data is already NULL, nothing happens.
object descriptor to free.