diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-10-03 18:43:52 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-10-03 18:43:52 +0200 |
commit | 943ef9665ec952f088a851624746b6b11687ae25 (patch) | |
tree | 7aa83a07289b7044cf0f61902db43ea0f70122ed | |
parent | 65f63a55c7fad7a98fb82f48b6fe4e65d6fd8fff (diff) |
osmux: nullify osmux.rtpst after freeing it
Change-Id: I806cbe42cfc8fe59134ae842f3d7398acb1a1848
-rw-r--r-- | src/common/osmux.c | 4 |
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; } |