diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-02-13 01:37:36 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-02-13 01:37:36 +0100 |
commit | b973955295b720b8ba7c556d0165750ed9bfb381 (patch) | |
tree | b2b7499e0b09e7b5b17f17640329f68038fb71d2 | |
parent | 9d51a36528f514a655ea73288de1af1166d085e1 (diff) |
[msc/nat] It is better to use msgb_free to free the msgb
msgb_free is currently calling talloc_free but this might
change in the future and then this code would break..
-rw-r--r-- | openbsc/src/bsc_msc_ip.c | 2 | ||||
-rw-r--r-- | openbsc/src/nat/bsc_nat.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/src/bsc_msc_ip.c b/openbsc/src/bsc_msc_ip.c index 4afed18f5..5e3831bd4 100644 --- a/openbsc/src/bsc_msc_ip.c +++ b/openbsc/src/bsc_msc_ip.c @@ -672,7 +672,7 @@ static int ipaccess_a_fd_cb(struct bsc_fd *bfd, unsigned int what) } else if (hh->proto == IPAC_PROTO_SCCP) sccp_system_incoming(msg); - talloc_free(msg); + msgb_free(msg); return 0; } diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index 8e31188ec..6ce78be7f 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c @@ -401,7 +401,7 @@ static int ipaccess_msc_cb(struct bsc_fd *bfd, unsigned int what) else if (hh->proto == IPAC_PROTO_SCCP) forward_sccp_to_bts(msg); - talloc_free(msg); + msgb_free(msg); return 0; } @@ -568,7 +568,7 @@ static int ipaccess_bsc_cb(struct bsc_fd *bfd, unsigned int what) /* FIXME: Currently no PONG is sent to the BSC */ /* FIXME: Currently no ID ACK is sent to the BSC */ forward_sccp_to_msc(bfd, msg); - talloc_free(msg); + msgb_free(msg); return 0; } |