Change in osmocom-bb[master]: trxcon: make both Valgrind and trxcon happy

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 Jul 27 19:43:21 UTC 2018


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/10206


Change subject: trxcon: make both Valgrind and trxcon happy
......................................................................

trxcon: make both Valgrind and trxcon happy

Change-Id: If5c349082757bb30408477b1ef528934eded0232
---
M src/host/trxcon/trxcon.c
1 file changed, 5 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/06/10206/1

diff --git a/src/host/trxcon/trxcon.c b/src/host/trxcon/trxcon.c
index c746816..84d132e 100644
--- a/src/host/trxcon/trxcon.c
+++ b/src/host/trxcon/trxcon.c
@@ -320,6 +320,11 @@
 	 * to be able to find and fix potential memory leaks.
 	 */
 	talloc_report_full(tall_trx_ctx, stderr);
+	talloc_free(tall_trx_ctx);
+
+	/* Make both Valgrind and ASAN happy */
+	talloc_report_full(NULL, stderr);
+	talloc_disable_null_tracking();
 
 	return rc;
 }

-- 
To view, visit https://gerrit.osmocom.org/10206
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: If5c349082757bb30408477b1ef528934eded0232
Gerrit-Change-Number: 10206
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/20180727/73a844e0/attachment.htm>


More information about the gerrit-log mailing list