*/
if (dl_modules) talloc_free(dl_modules);
+#ifdef HAVE_OPENSSL_CRYPTO_H
+ /*
+ * Make sure we clean up the TLS dictionary...
+ */
+ fr_tls_dict_free();
+#endif
+
/*
* Cleanup everything else
*/
TALLOC_FREE(global_mutexes);
- fr_dict_autofree(tls_dict);
+ fr_tls_dict_free();
}
#else
/** Free any memory alloced by libssl
OPENSSL_cleanup();
- fr_dict_autofree(tls_dict);
+ fr_tls_dict_free();
}
#endif
return 0;
}
+void fr_tls_dict_free(void)
+{
+ fr_dict_autofree(tls_dict);
+}
#endif /* WITH_TLS */