Please enable JavaScript to view this site.

Function to release dynamic memory assigned by other C functions

 

Functions C that return a string (char *) use dynamic memory allocation to store the return string.

Once that string is not needed, the memory assigned to it must be released.

Since the memory allocation was made inside the C library, the LkFreeMemory function must be used to release that memory.

 

 

data

char*

 

pointer to the memory that must be released

 

       C