aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2022-10-03 18:43:52 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2022-10-03 18:43:52 +0200
commit943ef9665ec952f088a851624746b6b11687ae25 (patch)
tree7aa83a07289b7044cf0f61902db43ea0f70122ed
parent65f63a55c7fad7a98fb82f48b6fe4e65d6fd8fff (diff)
osmux: nullify osmux.rtpst after freeing it
-rw-r--r--src/common/osmux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/osmux.c b/src/common/osmux.c
index 8a5d1eeb..d10d0914 100644
--- a/src/common/osmux.c
+++ b/src/common/osmux.c
@@ -427,8 +427,10 @@ void lchan_osmux_release(struct gsm_lchan *lchan)
osmux_handle_put(bts, lchan->abis_ip.osmux.in);
lchan->abis_ip.osmux.in = NULL;
}
- if (lchan->abis_ip.osmux.rtpst)
+ if (lchan->abis_ip.osmux.rtpst) {
osmo_rtp_handle_free(lchan->abis_ip.osmux.rtpst);
+ lchan->abis_ip.osmux.rtpst = NULL;
+ }
lchan->abis_ip.osmux.use = false;
}