diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2011-07-07 17:42:07 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2011-07-07 17:42:07 +0200 |
commit | d2fba90c1320a178bed0f4da752d4db95a522b89 (patch) | |
tree | 8973e721a7ad113f3f05b6e40550d81cdc472dce /src/input/ipaccess.c | |
parent | 9621b41cf6ee710885215d8e317e37705a5d6b9f (diff) |
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
Diffstat (limited to 'src/input/ipaccess.c')
-rw-r--r-- | src/input/ipaccess.c | 3 |
1 files changed, 3 insertions, 0 deletions
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, |