diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-03-01 20:30:32 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-03-01 20:30:32 +0100 |
commit | a8ddb08e05295b11ffe2270c6736ce2f9e62180a (patch) | |
tree | 48523495290d3eb44a5670a2acd0818bf1a066e1 /openbsc/src/gprs | |
parent | c50543b18aad856c1be8acccb4980075d6eeef5a (diff) |
misc: Use msgb_free for freeing the messages
Diffstat (limited to 'openbsc/src/gprs')
-rw-r--r-- | openbsc/src/gprs/gb_proxy_main.c | 2 | ||||
-rw-r--r-- | openbsc/src/gprs/gprs_sndcp.c | 2 | ||||
-rw-r--r-- | openbsc/src/gprs/sgsn_main.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/src/gprs/gb_proxy_main.c b/openbsc/src/gprs/gb_proxy_main.c index c66350c90..0bfc6cf3b 100644 --- a/openbsc/src/gprs/gb_proxy_main.c +++ b/openbsc/src/gprs/gb_proxy_main.c @@ -84,7 +84,7 @@ static int proxy_ns_cb(enum gprs_ns_evt event, struct gprs_nsvc *nsvc, default: LOGP(DGPRS, LOGL_ERROR, "SGSN: Unknown event %u from NS\n", event); if (msg) - talloc_free(msg); + msgb_free(msg); rc = -EIO; break; } diff --git a/openbsc/src/gprs/gprs_sndcp.c b/openbsc/src/gprs/gprs_sndcp.c index 3e260abec..e422426a1 100644 --- a/openbsc/src/gprs/gprs_sndcp.c +++ b/openbsc/src/gprs/gprs_sndcp.c @@ -162,7 +162,7 @@ static int defrag_segments(struct gprs_sndcp_entity *sne) dqe = defrag_get_seg(sne, seg_nr); if (!dqe) { LOGP(DSNDCP, LOGL_ERROR, "Segment %u missing\n", seg_nr); - talloc_free(msg); + msgb_free(msg); return -EIO; } /* actually append the segment to the N-PDU */ diff --git a/openbsc/src/gprs/sgsn_main.c b/openbsc/src/gprs/sgsn_main.c index 95922fc15..f7eb2214d 100644 --- a/openbsc/src/gprs/sgsn_main.c +++ b/openbsc/src/gprs/sgsn_main.c @@ -91,7 +91,7 @@ static int sgsn_ns_cb(enum gprs_ns_evt event, struct gprs_nsvc *nsvc, default: LOGP(DGPRS, LOGL_ERROR, "SGSN: Unknown event %u from NS\n", event); if (msg) - talloc_free(msg); + msgb_free(msg); rc = -EIO; break; } |