aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-09-20 18:57:22 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2021-09-22 12:57:02 +0200
commit03c74baa83f4f3f699fac49affca9903dccb33f1 (patch)
treee61b6da5050a0503bbc6362600fa447a11e6d173
parent3c56335094c42fb06f4628070b7e6aad3706e5b5 (diff)
trx_if: Set pointer to null after freeing it
-rw-r--r--src/osmo-bts-trx/trx_if.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c
index 968c335e..bfeb2eca 100644
--- a/src/osmo-bts-trx/trx_if.c
+++ b/src/osmo-bts-trx/trx_if.c
@@ -1199,6 +1199,7 @@ void trx_if_flush(struct trx_l1h *l1h)
talloc_free(tcm);
}
talloc_free(l1h->last_acked);
+ l1h->last_acked = NULL;
}
/*! close the TRX for given handle (data + control socket) */