diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2013-01-16 08:43:24 +0100 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2013-01-16 09:19:11 +0100 |
commit | 7a5a67ab7b59749662e5f08a5861cc9c2c21ebd8 (patch) | |
tree | ca434db84330503040b3bc74f1284c1e12946745 /src/sysmo_l1_if.c | |
parent | 97644ed7f8147f99509ac3946666ac11228ea868 (diff) |
Use global PCU's talloc context for all talloc calls
This allows to track memory leaks of all memory that is allocated by
talloc. Especially bitvector allocations is tracked now.
Diffstat (limited to 'src/sysmo_l1_if.c')
-rw-r--r-- | src/sysmo_l1_if.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sysmo_l1_if.c b/src/sysmo_l1_if.c index 7cb1d177..68881bf3 100644 --- a/src/sysmo_l1_if.c +++ b/src/sysmo_l1_if.c @@ -14,6 +14,8 @@ #include <gprs_debug.h> #include <pcu_l1_if.h> +extern void *tall_pcu_ctx; + uint32_t l1if_ts_to_hLayer2(uint8_t trx, uint8_t ts) { return (ts << 16) | (trx << 24); @@ -320,7 +322,7 @@ void *l1if_open_pdch(void *priv, uint32_t hlayer1) struct femtol1_hdl *fl1h; int rc; - fl1h = talloc_zero(priv, struct femtol1_hdl); + fl1h = talloc_zero(tall_pcu_ctx, struct femtol1_hdl); if (!fl1h) return NULL; |