aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/ldap-url.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2012-12-28 18:26:59 +0000
committerWerner Koch <[email protected]>2013-03-20 08:50:17 +0000
commit2739834206f23833161898a73427b8a9c6d5d26d (patch)
tree03714abe221b38f91b2dc1a8df85d20f51b08c57 /dirmngr/ldap-url.c
parentkbx: Remove unused macro. (diff)
downloadgnupg-2739834206f23833161898a73427b8a9c6d5d26d.tar.gz
gnupg-2739834206f23833161898a73427b8a9c6d5d26d.zip
Add code to allow for late memory cleanup.
* common/init.c (mem_cleanup_item_t): New. (run_mem_cleanup): New. (_init_common_subsystems): Add an atexit for it. (register_mem_cleanup_func): New. * g10/kbnode.c (cleanup_registered): New. (release_unused_nodes): New. (alloc_node): Call register_mem_cleanup_func. -- It is often time consuming to figure out whether still allocated memory at process termination is fine (e.g. a cache) or a problem. To help for that register_mem_cleanup_func may now be used to cleanup such memory. The run time of the program will be longer; if that turns out to be a problem we can change the code to only run in debugging mode.
Diffstat (limited to 'dirmngr/ldap-url.c')
0 files changed, 0 insertions, 0 deletions