aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-06-29 18:46:28 +0200
committerHarald Welte <laforge@gnumonks.org>2011-06-29 18:46:28 +0200
commit5a7877457b2b5c60c52f2bea7424b3c15f04ab69 (patch)
tree55fc7243aa7d07c90685790ec4fcc170532bbb9a /src
parentb9919bd2a68d7898d56faaa0d15e97fd89bcaec7 (diff)
set talloc ctx for msgb's to make sure we see them in talloc report
Diffstat (limited to 'src')
-rw-r--r--src/osmo-bts-sysmo/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/main.c b/src/osmo-bts-sysmo/main.c
index 701b79a1..f322da09 100644
--- a/src/osmo-bts-sysmo/main.c
+++ b/src/osmo-bts-sysmo/main.c
@@ -184,9 +184,12 @@ int main(int argc, char **argv)
{
struct gsm_bts *bts;
struct ipabis_link *link;
+ void *tall_msgb_ctx;
int rc;
tall_bts_ctx = talloc_named_const(NULL, 1, "OsmoBTS context");
+ tall_msgb_ctx = talloc_named_const(tall_bts_ctx, 1, "msgb");
+ msgb_set_talloc_ctx(tall_msgb_ctx);
bts_log_init(NULL);