From d2fba90c1320a178bed0f4da752d4db95a522b89 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 7 Jul 2011 17:42:07 +0200 Subject: ipaccess: release virtual E1 line for closed connection We fix a leak in the ipaccess_drop(...) path where we were missing the release of the cloned E1 line for this OML/RSL links --- src/input/ipaccess.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c index a024054..5ecd2e6 100644 --- a/src/input/ipaccess.c +++ b/src/input/ipaccess.c @@ -242,6 +242,9 @@ static void ipaccess_drop(struct osmo_fd *bfd) bfd->fd = -1; talloc_free(bfd); } + /* release the virtual E1 line that we cloned for this socket, + * OML and RSL links should have been closed after sign_link_down. */ + talloc_free(line); } static int ipaccess_rcvmsg(struct e1inp_line *line, struct msgb *msg, -- cgit v1.2.3-55-g7522