nat: Allocate a named context to make dumping allocations possible

This is fixing the SIGUSR1 to really report the allocated
memory on stderr.
This commit is contained in:
Holger Hans Peter Freyther 2010-06-15 18:51:18 +08:00
parent 4c683d1215
commit a1597f1b29
1 changed files with 2 additions and 0 deletions

View File

@ -818,6 +818,8 @@ static void signal_handler(int signal)
int main(int argc, char** argv)
{
tall_bsc_ctx = talloc_named_const(NULL, 1, "nat");
log_init(&log_info);
stderr_target = log_target_create_stderr();
log_add_target(stderr_target);