laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-bsc/+/19825 )

Change subject: bsc_subscr_conn_fsm: fix a memleak in rll_ind_cb()
......................................................................

bsc_subscr_conn_fsm: fix a memleak in rll_ind_cb()

Change-Id: I9ce35c1e446b0dfdb5b01651466ccaafc23c9318
---
M src/osmo-bsc/bsc_subscr_conn_fsm.c
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo-bsc/bsc_subscr_conn_fsm.c 
b/src/osmo-bsc/bsc_subscr_conn_fsm.c
index 22aa70a..4f559fe 100644
--- a/src/osmo-bsc/bsc_subscr_conn_fsm.c
+++ b/src/osmo-bsc/bsc_subscr_conn_fsm.c
@@ -1026,8 +1026,10 @@
         * 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:

--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/19825
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I9ce35c1e446b0dfdb5b01651466ccaafc23c9318
Gerrit-Change-Number: 19825
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-MessageType: merged

Reply via email to