Change in osmo-pcu[master]: gprs_bssgp_pcu: fix possible memleak in gprs_nsvc_create_and_connect()

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
Fri Oct 9 14:53:41 UTC 2020


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/20515 )


Change subject: gprs_bssgp_pcu: fix possible memleak in gprs_nsvc_create_and_connect()
......................................................................

gprs_bssgp_pcu: fix possible memleak in gprs_nsvc_create_and_connect()

Change-Id: I9f44cd22b1353ded6eeb2fe9f8dd4818de758003
---
M src/gprs_bssgp_pcu.cpp
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/15/20515/1

diff --git a/src/gprs_bssgp_pcu.cpp b/src/gprs_bssgp_pcu.cpp
index 67c07a2..c57c3df 100644
--- a/src/gprs_bssgp_pcu.cpp
+++ b/src/gprs_bssgp_pcu.cpp
@@ -943,6 +943,7 @@
 
 	if (!bts->nse) {
 		LOGP(DBSSGP, LOGL_ERROR, "Failed to create NSE\n");
+		talloc_free(bind);
 		return 1;
 	}
 

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

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I9f44cd22b1353ded6eeb2fe9f8dd4818de758003
Gerrit-Change-Number: 20515
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201009/24552a8e/attachment.htm>


More information about the gerrit-log mailing list