Change in libosmocore[master]: gprs_ns2: gprs_ns2_free(): add missing talloc_free

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

lynxis lazus gerrit-no-reply at lists.osmocom.org
Sat Oct 10 02:28:30 UTC 2020


lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/20531 )


Change subject: gprs_ns2: gprs_ns2_free(): add missing talloc_free
......................................................................

gprs_ns2: gprs_ns2_free(): add missing talloc_free

It clean up all the space except the nsi itself.

Change-Id: Ia3fbe5d679d0af75b2b0db020f1eb082d629cf50
---
M src/gb/gprs_ns2.c
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/31/20531/1

diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c
index 86813f3..7a15352 100644
--- a/src/gb/gprs_ns2.c
+++ b/src/gb/gprs_ns2.c
@@ -1001,6 +1001,8 @@
 	llist_for_each_entry_safe(bind, tbind, &nsi->binding, list) {
 		gprs_ns2_free_bind(bind);
 	}
+
+	talloc_free(nsi);
 }
 
 /*! Configure whether a NS Instance should dynamically create NSEs based on incoming traffic.

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ia3fbe5d679d0af75b2b0db020f1eb082d629cf50
Gerrit-Change-Number: 20531
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201010/f4f79346/attachment.htm>


More information about the gerrit-log mailing list