summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-12-29 14:24:17 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-05-02 20:13:42 +0200
commit9ed07004acd7aa3e0c33f5e580e61c347b3064bc (patch)
treedbaee92d171168eb6ff5d66f01bfd1aa2e850d8d
parent8700474bbc064472ad60bcfb828bab5219bda01a (diff)
abis: Do not leak the line in case of no BTS being identified
-rw-r--r--openbsc/src/libabis/input/ipaccess.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/libabis/input/ipaccess.c b/openbsc/src/libabis/input/ipaccess.c
index cc2a7a055..0b0d1551f 100644
--- a/openbsc/src/libabis/input/ipaccess.c
+++ b/openbsc/src/libabis/input/ipaccess.c
@@ -458,6 +458,7 @@ static int ipaccess_drop(struct e1inp_ts *ts, struct osmo_fd *bfd)
/* error case */
LOGP(DINP, LOGL_ERROR, "Failed to find a signalling link for ts: %p\n", ts);
+ talloc_free(bfd->data);
osmo_fd_unregister(bfd);
close(bfd->fd);
bfd->fd = -1;