summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-07-28 02:22:29 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-07-28 02:22:29 +0700
commit488f92d8b869ffa626b83ff75ed93989a43e0732 (patch)
treed56904b2ebe14622d459ec0463fcfdccfeee7f7d
parent8f6909a94f14be583e57044d13a45ded5eaf3d2c (diff)
trxcon: make both Valgrind and trxcon happy
-rw-r--r--src/host/trxcon/trxcon.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/host/trxcon/trxcon.c b/src/host/trxcon/trxcon.c
index c7468169..84d132e0 100644
--- a/src/host/trxcon/trxcon.c
+++ b/src/host/trxcon/trxcon.c
@@ -320,6 +320,11 @@ exit:
* 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;
}