diff options
Diffstat (limited to 'exporting/tests/exporting_fixtures.c')
-rw-r--r-- | exporting/tests/exporting_fixtures.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/exporting/tests/exporting_fixtures.c b/exporting/tests/exporting_fixtures.c index f92575e337..677494cb88 100644 --- a/exporting/tests/exporting_fixtures.c +++ b/exporting/tests/exporting_fixtures.c @@ -15,15 +15,13 @@ int teardown_configured_engine(void **state) { struct engine *engine = *state; - struct instance *instance = engine->connector_root->instance_root; + struct instance *instance = engine->instance_root; free((void *)instance->config.destination); free((void *)instance->config.name); simple_pattern_free(instance->config.charts_pattern); simple_pattern_free(instance->config.hosts_pattern); free(instance); - free(engine->connector_root); - free((void *)engine->config.prefix); free((void *)engine->config.hostname); free(engine); @@ -122,8 +120,8 @@ int teardown_initialized_engine(void **state) struct engine *engine = *state; teardown_rrdhost(); - buffer_free(engine->connector_root->instance_root->labels); - buffer_free(engine->connector_root->instance_root->buffer); + buffer_free(engine->instance_root->labels); + buffer_free(engine->instance_root->buffer); teardown_configured_engine(state); return 0; |