From 30d2ebddd6eb1fd62deff137aa2c8eab55f2efc3 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 24 Dec 2009 09:43:25 +0100 Subject: move msgb talloc context into talloc_ctx.c This keeps the ordering right, independent of link ordering, it will ensure that the talloc dump will also catch msgb related memory leaks. --- openbsc/src/talloc_ctx.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbsc/src/talloc_ctx.c') diff --git a/openbsc/src/talloc_ctx.c b/openbsc/src/talloc_ctx.c index aa9f0b4d7..e90677b7e 100644 --- a/openbsc/src/talloc_ctx.c +++ b/openbsc/src/talloc_ctx.c @@ -1,6 +1,7 @@ #include #include +extern void *tall_msgb_ctx; extern void *tall_fle_ctx; extern void *tall_locop_ctx; extern void *tall_gsms_ctx; @@ -16,6 +17,7 @@ extern void *tall_upq_ctx; void talloc_ctx_init(void) { + tall_msgb_ctx = talloc_named_const(tall_bsc_ctx, 0, "msgb"); tall_fle_ctx = talloc_named_const(tall_bsc_ctx, 0, "bs11_file_list_entry"); tall_locop_ctx = talloc_named_const(tall_bsc_ctx, 0, "loc_updating_oper"); -- cgit v1.2.3