memory reorganization in sec-mod.

It no longer relies on main pool, it uses it's own pool.
In addition the DEBUG_LEAKS definition was added to allow debugging
leaks.
This commit is contained in:
Nikos Mavrogiannopoulos
2014-05-15 16:44:43 +02:00
parent 48c42fe254
commit d99c527758
8 changed files with 58 additions and 35 deletions
+8
View File
@@ -840,6 +840,10 @@ int main(int argc, char** argv)
/* tls credentials */
struct tls_st creds;
#ifdef DEBUG_LEAKS
talloc_enable_leak_report_full();
#endif
memset(&creds, 0, sizeof(creds));
/* main pool */
@@ -1143,6 +1147,10 @@ fork_failed:
/* Check for pending control commands */
ctl_handler_run_pending(s, &rd_set, &wr_set);
#ifdef DEBUG_LEAKS
talloc_report_full(s, stderr);
#endif
}
return 0;