auth_master_connections_deinit();
auth_worker_server_deinit();
- userdbs_deinit();
- passdbs_deinit();
mech_deinit(auth->set);
auth_deinit(&auth);
+ /* allow modules to unregister their dbs/drivers/etc. before freeing
+ the whole data structures containing them. */
+ module_dir_unload(&modules);
+
+ userdbs_deinit();
+ passdbs_deinit();
password_schemes_deinit();
sql_drivers_deinit();
random_deinit();
- module_dir_unload(&modules);
array_free(&listen_fd_types);
}