From 71cce91a76affb80a19ac1fa92e2ed3a1db0f2b4 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Wed, 16 Jan 2013 13:49:00 +0100 Subject: Use PCU's talloc context to allocate libosmogb instances This is usefull to identifiy memory leaks while using libosmogb. --- src/gprs_bssgp_pcu.cpp | 4 ++-- 1 file 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 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; -- cgit v1.2.3