From d19e58b13ce7716491d7fe22a91a52cf092b42a7 Mon Sep 17 00:00:00 2001 From: "Harald Welte (local)" Date: Sat, 15 Aug 2009 02:30:58 +0200 Subject: move talloc context creation out of on_dso / constructors the various constructors get called in a non-obvious, linker determined order, which makes certain objects disappear from the talloc report. This change moves the talloc context creation into a new talloc_ctx.c file --- openbsc/src/vty/vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/src/vty/vty.c') diff --git a/openbsc/src/vty/vty.c b/openbsc/src/vty/vty.c index 53800d111..affe28d8d 100644 --- a/openbsc/src/vty/vty.c +++ b/openbsc/src/vty/vty.c @@ -1630,7 +1630,7 @@ extern void *tall_bsc_ctx; /* Install vty's own commands like `who' command. */ void vty_init() { - tall_vty_ctx = talloc_named_const(tall_bsc_ctx, 1, "vty"); + tall_vty_ctx = talloc_named_const(NULL, 0, "vty"); /* For further configuration read, preserve current directory. */ vty_save_cwd(); -- cgit v1.2.3