# tibems_Close

Function

## Purpose

Deallocate the memory used by the EMS internal global data structures.

## C Declaration

    void tibems_close(void);

## COBOL Call

    CALL "tibems_close"
      RETURNING tibems-Return-Value
    END-CALL.

## Remarks

Before unloading the EMS library, you must call this function to clean up. Windows platforms allow selective unloading of DLLs.

Applications that call `tibems_Open` and `tibems_Close` one or more times will allocate and deallocate correctly as long as the close calls match the open calls.

## See Also

`tibems_Open`

Copyright © Cloud Software Group, Inc. All rights reserved.