Change in osmocom-bb[master]: trxcon/l1ctl.c: fix memleak triggered by unsupported messages

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Thu Jan 17 13:01:24 UTC 2019


Vadim Yanitskiy has submitted this change and it was merged. ( https://gerrit.osmocom.org/12604 )

Change subject: trxcon/l1ctl.c: fix memleak triggered by unsupported messages
......................................................................

trxcon/l1ctl.c: fix memleak triggered by unsupported messages

Change-Id: I6e636afec8e45d7dc786f5f159cd5d7784d9a83b
---
M src/host/trxcon/l1ctl.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Vadim Yanitskiy: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/host/trxcon/l1ctl.c b/src/host/trxcon/l1ctl.c
index 0b6d75a..2f1d720 100644
--- a/src/host/trxcon/l1ctl.c
+++ b/src/host/trxcon/l1ctl.c
@@ -871,6 +871,7 @@
 	case L1CTL_SIM_REQ:
 		LOGP(DL1C, LOGL_NOTICE, "Ignoring unsupported message "
 			"(type=%u)\n", l1h->msg_type);
+		msgb_free(msg);
 		return -ENOTSUP;
 	default:
 		LOGP(DL1C, LOGL_ERROR, "Unknown MSG type %u: %s\n", l1h->msg_type,

-- 
To view, visit https://gerrit.osmocom.org/12604
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I6e636afec8e45d7dc786f5f159cd5d7784d9a83b
Gerrit-Change-Number: 12604
Gerrit-PatchSet: 2
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190117/34d5a468/attachment.htm>


More information about the gerrit-log mailing list