From aad68b5ef8ca6c6e9e932fca0a3e7ef68f0e050d Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 15 Jun 2010 18:46:48 +0800 Subject: [PATCH] [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/nat/bsc_nat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }