Freeing a memory object

When your program no longer needs the memory object, it uses IARV64 DETACH to free (delete) the memory object. You can free memory objects that are related to each other through the user token defined on the IARV64 GETSTOR service. Additionally, all programs can use the following parameters:
Three conditions to avoid when you try to free a memory object are:

If you specify the COND=YES parameter, you must also specify a user token. In the recovery routine that gets control at an abend, you can ignore the abend and leave the memory object in an unusable state.

As part of normal task termination, RTM frees the memory objects owned by the terminating task.