Skip to content

7.4 Memory ownership

The API includes functions that return memory to the caller, who is responsible for freeing that memory. To simplify memory management, the API provides dedicated functions for freeing specific data structures. Use the following functions to free memory allocated by their corresponding API calls:

lou_freeEmphClasses

Frees memory allocated by lou_getEmphClasses

lou_freeTableInfo

Frees memory allocated by lou_getTableInfo

lou_freeTableFile

Frees memory allocated by lou_findTable

lou_freeTableFiles

Frees memory allocated by lou_findTables and lou_listTables