@ -121,8 +121,11 @@ f2b_backend_init(f2b_backend_t *backend, f2b_config_section_t *config) {
void
f2b_backend_destroy(f2b_backend_t *backend) {
if (!backend) return;
backend->destroy(backend->cfg);
dlclose(backend->h);
if (backend->h) {
if (backend->cfg)
}
free(backend);
@ -180,8 +180,11 @@ f2b_filter_init(f2b_filter_t *filter, f2b_config_section_t *config) {
f2b_filter_destroy(f2b_filter_t *filter) {
if (!filter) return;
filter->destroy(filter->cfg);
dlclose(filter->h);
if (filter->h) {
if (filter->cfg)
free(filter);
@ -117,8 +117,11 @@ f2b_source_init(f2b_source_t *source, f2b_config_section_t *config) {
f2b_source_destroy(f2b_source_t *source) {
if (!source) return;
source->destroy(source->cfg);
dlclose(source->h);
if (source->h) {
if (source->cfg)
free(source);