crypto cleanups at exit.

git-svn-id: file:///svn/unbound/trunk@567 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-08-30 13:38:52 +00:00
parent a22a3b1669
commit 45297772c9
4 changed files with 9 additions and 2 deletions

View file

@ -460,6 +460,12 @@ daemon_delete(struct daemon* daemon)
free(daemon->pidfile);
free(daemon->env);
free(daemon);
/* libcrypto cleanup */
/* CONF_modules_unload(1); */
EVP_cleanup();
/* ENGINE_cleanup(); */
CRYPTO_cleanup_all_ex_data(); /* safe, no more threads right now */
ERR_remove_state(0);
ERR_free_strings();
checklock_stop();
}

View file

@ -114,7 +114,6 @@ void
worker_mem_report(struct worker* worker, struct serviced_query* cur_serv)
{
/* debug func in validator module */
size_t val_kcache_get_mem(void*);
size_t total, front, back, mesh, msg, rrset, infra, ac, superac;
size_t me, iter, val;
int i;

View file

@ -7,6 +7,7 @@
- memory accounting fixup for outside network tcp callbacks.
- memory accounting for iterator fixed storage.
- key cache size and slabs config options.
- lib crypto cleanups at exit.
29 August 2007: Wouter
- test tool to sign rrsets for testing validator with.

View file

@ -1777,7 +1777,8 @@ val_clear(struct module_qstate* qstate, int id)
/**
* Debug helper routine that assists worker in determining memory in
* use.
* @param me: mod_env value
* @param env: module environment
* @param id: module id.
* @return memory in use in bytes.
*/
static size_t