summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso2011-07-07 17:42:07 +0200
committerPablo Neira Ayuso2011-07-07 17:42:07 +0200
commitd2fba90c1320a178bed0f4da752d4db95a522b89 (patch)
tree8973e721a7ad113f3f05b6e40550d81cdc472dce /src
parentipaccess: don't forget to release temporary RSL socket (diff)
downloadlibosmo-abis-d2fba90c1320a178bed0f4da752d4db95a522b89.tar.gz
libosmo-abis-d2fba90c1320a178bed0f4da752d4db95a522b89.tar.xz
libosmo-abis-d2fba90c1320a178bed0f4da752d4db95a522b89.zip
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')
-rw-r--r--src/input/ipaccess.c3
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,