Currently we just free the conf struct. For some filters this not
enough to deallocate all resources and therefore results in a memory
leak. This leak is not serious though, since it does not affect
para_audiod, and para_filter is about to exit anyway at this point.
Fix it anyway.
if (f->close)
f->close(fn);
btr_remove_node(&fn->btrn);
- free(fn->conf);
+ if (f->free_config)
+ f->free_config(fn->conf);
free(fn);
}
free(fns);