aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sgsn/gprs_sndcp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sgsn/gprs_sndcp.c b/src/sgsn/gprs_sndcp.c
index 01be57ef2..7ce69600d 100644
--- a/src/sgsn/gprs_sndcp.c
+++ b/src/sgsn/gprs_sndcp.c
@@ -366,6 +366,10 @@ static int defrag_segments(struct gprs_sndcp_entity *sne)
rc = sgsn_rx_sndcp_ud_ind(&sne->ra_id, sne->lle->llme->tlli,
sne->nsapi, msg, npdu_len, expnd);
+ /* we must free the memory we allocated above; ownership is not transferred
+ * downwards in the call above */
+ msgb_free(msg);
+
if (any_pcomp_or_dcomp_active(sgsn))
talloc_free(expnd);