/*
* Initialise the interpreter, registering operations.
*/
- if (unlang_init() < 0) return -1;
+ if (unlang_init_global() < 0) return -1;
if (server_init(config->root_cs) < 0) EXIT_WITH_FAILURE;
/*
* Free any resources used by the unlang interpreter.
*/
- unlang_free();
+ unlang_free_global();
#ifdef HAVE_OPENSSL_CRYPTO_H
fr_openssl_free(); /* Cleanup any memory alloced by OpenSSL and placed into globals */
*/
if (xlat_init() < 0) return -1;
- unlang_interpret_init_global();
/* Register operations for the default keywords */
unlang_condition_init();
unlang_foreach_init();
return 0;
}
-void unlang_free(void)
+void unlang_free_global(void)
{
if (--instance_count > 0) return;