void app_shutdown(void) { run_application_hook(AH_SHUTDOWN); log_template_global_deinit(); log_tags_global_deinit(); log_msg_global_deinit(); stats_destroy(); child_manager_deinit(); g_list_foreach(application_hooks, (GFunc) g_free, NULL); g_list_free(application_hooks); dns_cache_thread_deinit(); dns_cache_global_deinit(); hostname_global_deinit(); crypto_deinit(); msg_deinit(); /* NOTE: the iv_deinit() call should come here, but there's some exit * synchronization issue in libivykis that causes use-after-free with the * thread-local-state for the main thread and iv_work_pool worker threads. * I've dropped a mail to Lennert about the issue, but I'm commenting this * out for now to avoid it biting someone. Bazsi, 2013/12/23. * * iv_deinit(); */ }
void app_shutdown(void) { run_application_hook(AH_SHUTDOWN); log_template_global_deinit(); log_tags_deinit(); log_msg_global_deinit(); stats_destroy(); dns_cache_destroy(); child_manager_deinit(); g_list_foreach(application_hooks, (GFunc) g_free, NULL); g_list_free(application_hooks); msg_deinit(); iv_deinit(); }