pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/29574 )
Change subject: osmux: nullify osmux.rtpst after freeing it ......................................................................
osmux: nullify osmux.rtpst after freeing it
Change-Id: I806cbe42cfc8fe59134ae842f3d7398acb1a1848 --- M src/common/osmux.c 1 file changed, 3 insertions(+), 1 deletion(-)
Approvals: laforge: Looks good to me, approved fixeria: Looks good to me, but someone else must approve Jenkins Builder: Verified
diff --git a/src/common/osmux.c b/src/common/osmux.c index 8a5d1ee..d10d091 100644 --- a/src/common/osmux.c +++ b/src/common/osmux.c @@ -427,8 +427,10 @@ 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; }