Liblouis User's and Programmer's Manual
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_freeEmphClassesFrees memory allocated by
lou_getEmphClasseslou_freeTableInfoFrees memory allocated by
lou_getTableInfolou_freeTableFileFrees memory allocated by
lou_findTablelou_freeTableFilesFrees memory allocated by
lou_findTablesandlou_listTables