From 0f4541b691fc1a2fffff2142f10620bb41f1f589 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Wed, 16 Jan 2013 09:17:24 +0100 Subject: Free each fl1h (sysmo-bts' layer 1 handler) when closing BTS<->PCU socket --- src/sysmo_l1_if.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sysmo_l1_if.c') diff --git a/src/sysmo_l1_if.c b/src/sysmo_l1_if.c index 68881bf3..2e1cb768 100644 --- a/src/sysmo_l1_if.c +++ b/src/sysmo_l1_if.c @@ -345,11 +345,12 @@ void *l1if_open_pdch(void *priv, uint32_t hlayer1) return fl1h; } -static int l1if_close_pdch(void *obj) +int l1if_close_pdch(void *obj) { struct femtol1_hdl *fl1h = obj; if (fl1h) l1if_transport_close(MQ_PDTCH_WRITE, fl1h); + talloc_free(fl1h); return 0; } -- cgit v1.2.3