Browse Source

* fixes in f2b_{mod}_destroy()

master
Alex 'AdUser' Z 4 years ago
parent
commit
ccd204641b
  1. 2
      src/backend.c
  2. 2
      src/filter.c
  3. 2
      src/source.c

2
src/backend.c

@ -100,7 +100,7 @@ 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) {
assert(backend != NULL); if (!backend) return;
backend->destroy(backend->cfg); backend->destroy(backend->cfg);
dlclose(backend->h); dlclose(backend->h);
free(backend); free(backend);

2
src/filter.c

@ -159,7 +159,7 @@ f2b_filter_init(f2b_filter_t *filter, f2b_config_section_t *config) {
void void
f2b_filter_destroy(f2b_filter_t *filter) { f2b_filter_destroy(f2b_filter_t *filter) {
assert(filter != NULL); if (!filter) return;
filter->destroy(filter->cfg); filter->destroy(filter->cfg);
dlclose(filter->h); dlclose(filter->h);
free(filter); free(filter);

2
src/source.c

@ -96,7 +96,7 @@ f2b_source_init(f2b_source_t *source, f2b_config_section_t *config) {
void void
f2b_source_destroy(f2b_source_t *source) { f2b_source_destroy(f2b_source_t *source) {
assert(source != NULL); if (!source) return;
source->destroy(source->cfg); source->destroy(source->cfg);
dlclose(source->h); dlclose(source->h);
free(source); free(source);

Loading…
Cancel
Save