aboutsummaryrefslogtreecommitdiffstats
path: root/src/gb/gprs_ns2.c
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2020-10-26 00:25:50 +0100
committerlynxis lazus <lynxis@fe80.eu>2020-11-03 22:37:45 +0000
commitcce88282388f13240f36cc0ec003046117e96155 (patch)
tree91cad374ada8a678f87759b005fb7da3c1f11eb2 /src/gb/gprs_ns2.c
parent07a923ff1405b0d48b3ba6ae8bf33f1d6089213d (diff)
libosmocore: change the memory management of NS2
Until now NS2 always free'd it's own memory. Even when the msg was sent as primitive to the upper layer. Change the memory ownership when sending a primitive to the upper layer. The upper layer has to free the msg buffer. Merge together with: I180433735bfbb3375c41318d7a7709d5845199ba (osmo-pcu) Change-Id: Id844d7acbcab102a7dc472d608a5e97a748ecb43
Diffstat (limited to 'src/gb/gprs_ns2.c')
-rw-r--r--src/gb/gprs_ns2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c
index ffa31353..403b8b77 100644
--- a/src/gb/gprs_ns2.c
+++ b/src/gb/gprs_ns2.c
@@ -1001,7 +1001,7 @@ void ns2_nse_notify_unblocked(struct gprs_ns2_vc *nsvc, bool unblocked)
/*! Create a new GPRS NS instance
* \param[in] ctx a talloc context to allocate NS instance from
- * \param[in] cb Call-back function for dispatching primitives to the user
+ * \param[in] cb Call-back function for dispatching primitives to the user. The Call-back must free all msgb* given in the primitive.
* \param[in] cb_data transparent user data passed to Call-back
* \returns dynamically allocated gprs_ns_inst; NULL on error */
struct gprs_ns2_inst *gprs_ns2_instantiate(void *ctx, osmo_prim_cb cb, void *cb_data)