Werner Koch
2739834206
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.
2013-03-20 09:50:17 +01:00
..
2013-02-06 12:56:19 +01:00
2012-12-18 18:06:41 +01:00
2012-12-18 18:06:41 +01:00
2012-04-20 15:48:48 +02:00
2012-06-05 19:29:22 +02:00
2012-04-20 15:48:48 +02:00
2012-06-05 19:29:22 +02:00
2011-02-04 12:57:53 +01:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2011-12-01 11:09:02 +01:00
2011-12-01 11:09:02 +01:00
2007-07-04 19:49:40 +00:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2012-06-05 19:29:22 +02:00
2012-06-05 19:29:22 +02:00
2011-09-30 12:53:34 +02:00
2012-06-05 19:29:22 +02:00
2012-06-05 19:29:22 +02:00
2012-06-05 19:29:22 +02:00
2012-06-05 19:29:22 +02:00
2011-02-04 12:57:53 +01:00
2012-06-05 19:29:22 +02:00
2012-06-05 19:29:22 +02:00
2012-06-05 19:29:22 +02:00
2012-04-20 15:48:48 +02:00
2011-02-04 12:57:53 +01:00
2011-02-04 12:57:53 +01:00
2012-06-05 19:29:22 +02:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2012-04-26 09:52:25 +02:00
2012-04-20 15:48:48 +02:00
2012-06-05 19:29:22 +02:00
2012-06-05 19:29:22 +02:00
2012-06-05 19:29:22 +02:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2011-02-04 12:57:53 +01:00
2013-03-20 09:50:17 +01:00
2013-03-20 09:50:17 +01:00
2013-01-08 14:46:06 +01:00
2012-04-20 15:48:48 +02:00
2007-07-04 19:49:40 +00:00
2011-01-10 14:30:17 +01:00
2011-09-30 12:53:34 +02:00
2012-04-20 15:48:48 +02:00
2013-01-08 14:35:27 +01:00
2013-01-07 16:51:24 +01:00
2013-02-06 12:56:19 +01:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2011-09-30 12:53:34 +02:00
2011-09-30 12:53:34 +02:00
2011-02-04 12:57:53 +01:00
2011-02-04 12:57:53 +01:00
2011-02-04 12:57:53 +01:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2003-08-05 17:11:04 +00:00
2011-02-04 12:57:53 +01:00
2012-11-20 19:03:49 +01:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2013-02-06 12:56:19 +01:00
2012-04-20 15:48:48 +02:00
2012-11-20 19:03:49 +01:00
2011-02-04 12:57:53 +01:00
2012-08-24 09:29:56 +02:00
2012-04-20 15:48:48 +02:00
2012-12-12 18:47:21 +01:00
2012-04-20 15:48:48 +02:00
2011-02-04 12:57:53 +01:00
2013-01-30 18:51:56 +01:00
2013-02-21 20:25:12 +01:00
2013-02-21 20:25:12 +01:00
2011-09-30 12:53:34 +02:00
2011-09-30 12:53:34 +02:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2012-06-05 19:29:22 +02:00
2011-02-04 12:57:53 +01:00
2012-06-05 19:29:22 +02:00
2012-06-05 19:29:22 +02:00
2011-08-10 14:11:30 +02:00
2012-06-05 19:29:22 +02:00
2012-06-05 19:29:22 +02:00
2011-01-31 18:19:14 +01:00
2011-02-04 12:57:53 +01:00
2011-02-04 12:57:53 +01:00
2011-02-04 12:57:53 +01:00
2012-06-05 19:29:22 +02:00
2011-09-30 12:53:34 +02:00
2011-09-30 12:53:34 +02:00
2011-09-30 12:53:34 +02:00
2011-02-04 12:57:53 +01:00
2012-03-27 19:46:20 +02:00
2011-09-30 12:53:34 +02:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2012-06-05 19:29:22 +02:00
2012-04-20 15:48:48 +02:00
2011-09-30 12:53:34 +02:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2012-12-13 16:11:21 +01:00
2011-09-30 12:53:34 +02:00
2012-11-20 19:03:49 +01:00
2011-09-30 12:53:34 +02:00
2011-09-30 12:53:34 +02:00
2011-09-30 12:53:34 +02:00
2011-09-30 12:53:34 +02:00
2012-04-20 15:48:48 +02:00
2011-09-30 12:53:34 +02:00
2011-09-30 12:53:34 +02:00
2012-04-20 15:48:48 +02:00
2011-02-04 12:57:53 +01:00