|
|
@ -121,8 +121,11 @@ f2b_backend_init(f2b_backend_t *backend, f2b_config_section_t *config) { |
|
|
|
void |
|
|
|
void |
|
|
|
f2b_backend_destroy(f2b_backend_t *backend) { |
|
|
|
f2b_backend_destroy(f2b_backend_t *backend) { |
|
|
|
if (!backend) return; |
|
|
|
if (!backend) return; |
|
|
|
|
|
|
|
if (backend->h) { |
|
|
|
|
|
|
|
if (backend->cfg) |
|
|
|
backend->destroy(backend->cfg); |
|
|
|
backend->destroy(backend->cfg); |
|
|
|
dlclose(backend->h); |
|
|
|
dlclose(backend->h); |
|
|
|
|
|
|
|
} |
|
|
|
free(backend); |
|
|
|
free(backend); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|