diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2013-01-16 13:49:00 +0100 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2013-01-16 13:50:42 +0100 |
commit | 71cce91a76affb80a19ac1fa92e2ed3a1db0f2b4 (patch) | |
tree | 5f7438747f38e02831495bc960aa05dbb281a93d /src/gprs_bssgp_pcu.cpp | |
parent | 0f4541b691fc1a2fffff2142f10620bb41f1f589 (diff) |
Use PCU's talloc context to allocate libosmogb instances
This is usefull to identifiy memory leaks while using libosmogb.
Diffstat (limited to 'src/gprs_bssgp_pcu.cpp')
-rw-r--r-- | src/gprs_bssgp_pcu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gprs_bssgp_pcu.cpp b/src/gprs_bssgp_pcu.cpp index aa3153cd..4f8c41ec 100644 --- a/src/gprs_bssgp_pcu.cpp +++ b/src/gprs_bssgp_pcu.cpp @@ -22,7 +22,7 @@ #include <pcu_l1_if.h> struct sgsn_instance *sgsn; -void *tall_bsc_ctx; +extern void *tall_pcu_ctx; struct bssgp_bvc_ctx *bctx = NULL; struct gprs_nsvc *nsvc = NULL; static int bvc_sig_reset = 0, bvc_reset = 0, bvc_unblocked = 0; @@ -573,7 +573,7 @@ int gprs_bssgp_create(uint32_t sgsn_ip, uint16_t sgsn_port, uint16_t nsei, if (bctx) return 0; /* if already created, must return 0: no error */ - bssgp_nsi = gprs_ns_instantiate(&sgsn_ns_cb, NULL); + bssgp_nsi = gprs_ns_instantiate(&sgsn_ns_cb, tall_pcu_ctx); if (!bssgp_nsi) { LOGP(DBSSGP, LOGL_ERROR, "Failed to create NS instance\n"); return -EINVAL; |