The LMX_Free function frees any allocated memory used by the licensing system and closes any open connection to a license server.
[in] LM-X handle.
A handle of value NULL is valid, but does not cause cleanup.
Calling any other licensing functions on the handle after this one will have undefined behavior.
The following example shows the use of the LMX_Free function, which deallocates all memory that was previously allocated by the licensing system.
It is important to note that you should call this function before you leave the application that initialized a handler.