From b8ac7ffd7c459b40c0fa8c25da06a306ed40b360 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 21 Feb 2010 13:08:12 +0100 Subject: [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.. --- openbsc/src/bsc_msc_ip.c | 2 +- openbsc/src/nat/bsc_nat.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'openbsc') diff --git a/openbsc/src/bsc_msc_ip.c b/openbsc/src/bsc_msc_ip.c index f816b730f..af205f689 100644 --- a/openbsc/src/bsc_msc_ip.c +++ b/openbsc/src/bsc_msc_ip.c @@ -641,7 +641,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 0ad8be986..ba195fedb 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c @@ -148,7 +148,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; } @@ -204,7 +204,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(msg); - talloc_free(msg); + msgb_free(msg); return 0; } -- cgit v1.2.3