mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-01 04:19:36 -05:00
Cleaner memleak output.
git-svn-id: file:///svn/unbound/trunk@1772 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
6f1f6dafb5
commit
78ed2ec08a
1 changed files with 6 additions and 0 deletions
|
|
@ -63,6 +63,9 @@ static int sig_record_quit = 0;
|
|||
/** How many reload requests happened. */
|
||||
static int sig_record_reload = 0;
|
||||
|
||||
/** cleaner ssl memory freeup */
|
||||
static void* comp_meth = NULL;
|
||||
|
||||
/** used when no other sighandling happens, so we don't die
|
||||
* when multiple signals in quick succession are sent to us.
|
||||
* @param sig: signal number.
|
||||
|
|
@ -172,6 +175,8 @@ daemon_init()
|
|||
(void)ldns_key_EVP_load_gost_id();
|
||||
#endif
|
||||
OpenSSL_add_all_algorithms();
|
||||
/* grab the COMP method ptr because openssl leaks it */
|
||||
comp_meth = SSL_COMP_get_compression_methods();
|
||||
(void)SSL_library_init();
|
||||
#ifdef HAVE_TZSET
|
||||
/* init timezone info while we are not chrooted yet */
|
||||
|
|
@ -499,6 +504,7 @@ daemon_delete(struct daemon* daemon)
|
|||
free(daemon->env);
|
||||
free(daemon);
|
||||
/* libcrypto cleanup */
|
||||
sk_SSL_COMP_free(comp_meth);
|
||||
#ifdef HAVE_OPENSSL_CONFIG
|
||||
EVP_cleanup();
|
||||
ENGINE_cleanup();
|
||||
|
|
|
|||
Loading…
Reference in a new issue