Next: , Previous: , Up: Using libfko   [Contents][Index]


3.2 Destroying Contexts

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.

Function: void fko_destroy (fko_ctx_t ctx)

The function fko_destroy destroys the context with the handle ctx and releases all associated resources.