bsc_subscr_conn_fsm: fix a memleak in rll_ind_cb()

Change-Id: I9ce35c1e446b0dfdb5b01651466ccaafc23c9318
This commit is contained in:
Vadim Yanitskiy 2020-08-26 18:28:12 +07:00 committed by laforge
parent f1339dfece
commit e76de16ff6
1 changed files with 3 additions and 1 deletions

View File

@ -1026,8 +1026,10 @@ static void rll_ind_cb(struct gsm_lchan *lchan, uint8_t link_id, void *_data, en
* fire after a lchan_release call and before the S_CHALLOC_FREED
* is called. Check if a conn is set before proceeding.
*/
if (!lchan->conn)
if (!lchan->conn) {
msgb_free(msg);
return;
}
switch (rllr_ind) {
case BSC_RLLR_IND_EST_CONF: