fixeria has uploaded this change for review. ( 
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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/25/19825/1

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: 1
Gerrit-Owner: fixeria <[email protected]>
Gerrit-MessageType: newchange

Reply via email to