Next: Creating a SPA Message, Previous: Creating Contexts, Up: Using libfko [Contents][Index]
When you are done with the context, you must destroy it in order to free up the memory and resources it was using. This is especially important in programs that process SPA data repeatedly (i.e. in a loop). Failure to destroy the context can cause memory leaks in your program.
The function fko_destroy
destroys the context with the handle
ctx and releases all associated resources.