aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-23 21:56:57 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-23 21:56:57 +0800
commite511d54dd054ead34f128da2f3b7452caccbcf22 (patch)
tree6bac3da8ba03484c97694482a1a19e5c3bcc2a71
parent6edf7b9a5180db37521a3a60f5f95ec2ec0e3ef1 (diff)
nat: Allocate a named context to make dumping allocations possible
This is fixing the SIGUSR1 to really report the allocated memory on stderr.
-rw-r--r--openbsc/src/nat/bsc_nat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index 52844276..a6258dac 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -819,6 +819,7 @@ static void signal_handler(int signal)
int main(int argc, char** argv)
{
log_init(&log_info);
+ tall_bsc_ctx = talloc_named_const(NULL, 1, "nat");
stderr_target = log_target_create_stderr();
log_add_target(stderr_target);
log_set_all_filter(stderr_target, 1);