set talloc ctx for msgb's to make sure we see them in talloc report

This commit is contained in:
Harald Welte 2011-06-29 18:46:28 +02:00
parent b9919bd2a6
commit 5a7877457b
1 changed files with 3 additions and 0 deletions

View File

@ -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);