[PATCH] osmo-bts[master]: Fixes memory leak on each call

Max gerrit-no-reply at lists.osmocom.org
Tue Jan 24 18:26:06 UTC 2017


Review at  https://gerrit.osmocom.org/1660

Fixes memory leak on each call

Port of Ife1293e3238cfda16eac9c28e7e81ffe5595e031 for sysmobts.

Change-Id: I6eaf16892ea0048338798d0ba5a5088f0c158344
---
M src/osmo-bts-sysmo/l1_if.c
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/60/1660/1

diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c
index 82db8d7..d937699 100644
--- a/src/osmo-bts-sysmo/l1_if.c
+++ b/src/osmo-bts-sysmo/l1_if.c
@@ -1081,8 +1081,10 @@
 		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,

-- 
To view, visit https://gerrit.osmocom.org/1660
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6eaf16892ea0048338798d0ba5a5088f0c158344
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>


More information about the gerrit-log mailing list