diff options
author | Jean-Francois Dionne <jf.dionne@nutaq.com> | 2017-01-24 11:21:07 -0500 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-01-31 11:06:52 +0000 |
commit | 8c45ae59f95d4b3efcffbd1b846d26e1de341931 (patch) | |
tree | b77ac5819acbd808f0b880df95842329cae9019e /src/osmo-bts-litecell15 | |
parent | d81e5e963aca09e79b0536d8f0d5ccf0a977f79c (diff) |
sysmo,lc15: fix memory leak at each call placed
Max's note: added same fix for default case and ported it to sysmobts.
Change-Id: Ife1293e3238cfda16eac9c28e7e81ffe5595e031
Diffstat (limited to 'src/osmo-bts-litecell15')
-rw-r--r-- | src/osmo-bts-litecell15/l1_if.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osmo-bts-litecell15/l1_if.c b/src/osmo-bts-litecell15/l1_if.c index c70bd9ec..0c5ef6b8 100644 --- a/src/osmo-bts-litecell15/l1_if.c +++ b/src/osmo-bts-litecell15/l1_if.c @@ -1093,8 +1093,10 @@ static int l1if_handle_ind(struct lc15l1_hdl *fl1, struct msgb *msg) rc = handle_mph_time_ind(fl1, &l1p->u.mphTimeInd, msg); break; case GsmL1_PrimId_MphSyncInd: + msgb_free(msg); break; case GsmL1_PrimId_PhConnectInd: + msgb_free(msg); break; case GsmL1_PrimId_PhReadyToSendInd: rc = handle_ph_readytosend_ind(fl1, &l1p->u.phReadyToSendInd, @@ -1107,7 +1109,7 @@ static int l1if_handle_ind(struct lc15l1_hdl *fl1, struct msgb *msg) rc = handle_ph_ra_ind(fl1, &l1p->u.phRaInd, msg); break; default: - break; + msgb_free(msg); } return rc; |