osmux: nullify osmux.rtpst after freeing it

Change-Id: I806cbe42cfc8fe59134ae842f3d7398acb1a1848
This commit is contained in:
Pau Espin 2022-10-03 18:43:52 +02:00
parent 65f63a55c7
commit 943ef9665e
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}