aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/l1_if.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-04-09 10:44:58 +0200
committerHarald Welte <laforge@gnumonks.org>2015-09-22 16:41:28 +0200
commit82676c13ee9ab2b73f089acf811239f8e37fa0fd (patch)
treead061a101f41e0f63f0a16214961963e11c9a93f /src/osmo-bts-trx/l1_if.c
parentc2ee307fd42975b63317e9d4944e5822286cc69b (diff)
TRX: Fix: Cleanly free TRX instances during initialization in case of an error
Diffstat (limited to 'src/osmo-bts-trx/l1_if.c')
-rw-r--r--src/osmo-bts-trx/l1_if.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/l1_if.c b/src/osmo-bts-trx/l1_if.c
index 676a6762..8b00856a 100644
--- a/src/osmo-bts-trx/l1_if.c
+++ b/src/osmo-bts-trx/l1_if.c
@@ -80,6 +80,7 @@ struct trx_l1h *l1if_open(struct gsm_bts_trx *trx)
err:
l1if_close(l1h);
+ trx->role_bts.l1h = NULL;
return NULL;
}