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 07:52:53 UTC 2019


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



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/04/12604/1

diff --git a/src/host/trxcon/l1ctl.c b/src/host/trxcon/l1ctl.c
index 02aa3fa..b8e2faa 100644
--- a/src/host/trxcon/l1ctl.c
+++ b/src/host/trxcon/l1ctl.c
@@ -872,6 +872,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: newchange
Gerrit-Change-Id: I6e636afec8e45d7dc786f5f159cd5d7784d9a83b
Gerrit-Change-Number: 12604
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190117/a51ea371/attachment.htm>


More information about the gerrit-log mailing list