Change in osmo-bts[master]: rsl: fix a memory leak in handle_gprs_susp_req()

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/.

fixeria gerrit-no-reply at lists.osmocom.org
Thu Oct 28 20:20:00 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/26025 )


Change subject: rsl: fix a memory leak in handle_gprs_susp_req()
......................................................................

rsl: fix a memory leak in handle_gprs_susp_req()

Change-Id: I65d9c12888aa5e5112680b3b3f38817e322ecc1c
---
M src/common/rsl.c
1 file changed, 1 insertion(+), 0 deletions(-)



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

diff --git a/src/common/rsl.c b/src/common/rsl.c
index a952d25..2d00005 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -3454,6 +3454,7 @@
 
 	if (!gh || msgb_l3len(msg) < sizeof(*gh)+sizeof(*gsr)) {
 		LOGP(DRSL, LOGL_NOTICE, "%s Short GPRS SUSPEND REQ received, ignoring\n", gsm_lchan_name(msg->lchan));
+		msgb_free(msg);
 		return -EINVAL;
 	}
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/26025
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I65d9c12888aa5e5112680b3b3f38817e322ecc1c
Gerrit-Change-Number: 26025
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211028/a4452a4f/attachment.htm>


More information about the gerrit-log mailing list