Change in libosmocore[master]: test: gprs_ns2: don't leak the talloc context

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
Sun Jan 17 21:43:23 UTC 2021


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


Change subject: test: gprs_ns2: don't leak the talloc context
......................................................................

test: gprs_ns2: don't leak the talloc context

Makes the address sanitizer happy

Change-Id: Ibf926d8db88cdb403d29de5e666dfb71eefc7b72
---
M tests/gb/gprs_ns2_test.c
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/70/22270/1

diff --git a/tests/gb/gprs_ns2_test.c b/tests/gb/gprs_ns2_test.c
index 86a0190..d53dc88 100644
--- a/tests/gb/gprs_ns2_test.c
+++ b/tests/gb/gprs_ns2_test.c
@@ -160,5 +160,6 @@
 	test_nse_transfer_cap(ctx);
 	printf("===== NS2 protocol test END\n\n");
 
+	talloc_free(ctx);
 	exit(EXIT_SUCCESS);
 }

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ibf926d8db88cdb403d29de5e666dfb71eefc7b72
Gerrit-Change-Number: 22270
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/20210117/1b364e4b/attachment.htm>


More information about the gerrit-log mailing list