1
0
mirror of https://github.com/kakwa/uts-server synced 2024-12-04 23:15:54 +01:00

fix more memleaks

This commit is contained in:
kakwa 2016-09-05 20:48:50 +02:00
parent 236f0cf04c
commit 0fc57d5396
2 changed files with 3 additions and 1 deletions

View File

@ -202,6 +202,7 @@ int http_server_start(char *conffile, char *conf_wd, bool stdout_dbg) {
while (g_uts_sig == 0) {
sleep(1);
}
// getchar();
// Stop the server.
mg_stop(ctx);

View File

@ -77,10 +77,11 @@ void free_ssl() {
CONF_modules_unload(1);
EVP_cleanup();
// ENGINE_cleanup();
ERR_remove_state(1);
ERR_remove_state(0);
CRYPTO_cleanup_all_ex_data();
EVP_cleanup();
ERR_free_strings();
OBJ_cleanup();
}
TS_RESP_CTX *create_tsctx(rfc3161_context *ct, CONF *conf, const char *section,