diff options
author | Harald Welte (local) <laflocal@hanuman.gnumonks.org> | 2009-08-15 02:30:58 +0200 |
---|---|---|
committer | Harald Welte (local) <laflocal@hanuman.gnumonks.org> | 2009-08-15 02:30:58 +0200 |
commit | d19e58b13ce7716491d7fe22a91a52cf092b42a7 (patch) | |
tree | e16a267c7fa496ddc102844479be76ce71fc0ab9 /openbsc/src/bsc_hack.c | |
parent | efc92311e22e67a210429a15c29b396b0561317f (diff) |
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
Diffstat (limited to 'openbsc/src/bsc_hack.c')
-rw-r--r-- | openbsc/src/bsc_hack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/bsc_hack.c b/openbsc/src/bsc_hack.c index 347e9519e..5f845136c 100644 --- a/openbsc/src/bsc_hack.c +++ b/openbsc/src/bsc_hack.c @@ -1217,6 +1217,7 @@ int main(int argc, char **argv) int rc; tall_bsc_ctx = talloc_named_const(NULL, 1, "openbsc"); + talloc_ctx_init(); on_dso_load_token(); /* parse options */ |