From 0fc57d5396f79570d164b09c066ed90fa0c78f8c Mon Sep 17 00:00:00 2001 From: kakwa Date: Mon, 5 Sep 2016 20:48:50 +0200 Subject: [PATCH] fix more memleaks --- src/lib/http.c | 1 + src/lib/rfc3161.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/http.c b/src/lib/http.c index 748a512..aef897a 100644 --- a/src/lib/http.c +++ b/src/lib/http.c @@ -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); diff --git a/src/lib/rfc3161.c b/src/lib/rfc3161.c index f0307eb..b06f4eb 100644 --- a/src/lib/rfc3161.c +++ b/src/lib/rfc3161.c @@ -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,