summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libgb
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-03-01 20:30:32 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-03-01 20:30:32 +0100
commita8ddb08e05295b11ffe2270c6736ce2f9e62180a (patch)
tree48523495290d3eb44a5670a2acd0818bf1a066e1 /openbsc/src/libgb
parentc50543b18aad856c1be8acccb4980075d6eeef5a (diff)
misc: Use msgb_free for freeing the messages
Diffstat (limited to 'openbsc/src/libgb')
-rw-r--r--openbsc/src/libgb/gprs_ns.c2
-rw-r--r--openbsc/src/libgb/gprs_ns_frgre.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/libgb/gprs_ns.c b/openbsc/src/libgb/gprs_ns.c
index a8f97e2a2..39ccd2851 100644
--- a/openbsc/src/libgb/gprs_ns.c
+++ b/openbsc/src/libgb/gprs_ns.c
@@ -998,7 +998,7 @@ static int nsip_sendmsg(struct gprs_nsvc *nsvc, struct msgb *msg)
rc = sendto(nsi->nsip.fd.fd, msg->data, msg->len, 0,
(struct sockaddr *)daddr, sizeof(*daddr));
- talloc_free(msg);
+ msgb_free(msg);
return rc;
}
diff --git a/openbsc/src/libgb/gprs_ns_frgre.c b/openbsc/src/libgb/gprs_ns_frgre.c
index 366257239..27c5c57b7 100644
--- a/openbsc/src/libgb/gprs_ns_frgre.c
+++ b/openbsc/src/libgb/gprs_ns_frgre.c
@@ -263,7 +263,7 @@ int gprs_ns_frgre_sendmsg(struct gprs_nsvc *nsvc, struct msgb *msg)
rc = sendto(nsi->frgre.fd.fd, msg->data, msg->len, 0,
(struct sockaddr *)&daddr, sizeof(daddr));
- talloc_free(msg);
+ msgb_free(msg);
return rc;
}