Deallocates the expanded memory pages assigned to a handle and then releases the handle.
Call with:
AH = 45H
DX = EMM handle
Returns:
If function successful
AH = 00H
If function unsuccessful
AH = error code
Notes:
If this function is not called before a program terminates, the EMS pages it owned remain unavailable until the system is restarted. Programs that use EMS should install their own Ctrl-C handlers and critical-error handlers (Ints 23H and 24H) so that they cannot be terminated unexpectedly.
[EMS 4.0] When a handle is released, its name is set to all ASCII nulls.