aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_msc_ip.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-02-21 12:56:02 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-02-21 12:56:02 +0100
commitb13cf829da5a35e1f6bd8a09250a97b8a212b718 (patch)
treef3cb657bea2d8c584d93502411edf53d21ae47ba /openbsc/src/bsc_msc_ip.c
parentfdc64f680679accb60f295f0c1712076877bd016 (diff)
[nat/bsc] Fix memory leak of IPA messages...
* The read_msg method is allocating the msgb and we will need to free it once we are done with it.
Diffstat (limited to 'openbsc/src/bsc_msc_ip.c')
-rw-r--r--openbsc/src/bsc_msc_ip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/bsc_msc_ip.c b/openbsc/src/bsc_msc_ip.c
index 54ed96b2a..f816b730f 100644
--- a/openbsc/src/bsc_msc_ip.c
+++ b/openbsc/src/bsc_msc_ip.c
@@ -641,6 +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);
return 0;
}