diff options
Diffstat (limited to 'src/host/trxcon/trxcon.c')
-rw-r--r-- | src/host/trxcon/trxcon.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/host/trxcon/trxcon.c b/src/host/trxcon/trxcon.c index 43c98a5c..1d0ecc3a 100644 --- a/src/host/trxcon/trxcon.c +++ b/src/host/trxcon/trxcon.c @@ -309,9 +309,14 @@ exit: /* Shutdown main state machine */ osmo_fsm_inst_free(trxcon_fsm); - /* Make Valgrind happy */ + /* Deinitialize logging */ log_fini(); - talloc_free(tall_trx_ctx); + + /** + * Print report for the root talloc context in order + * to be able to find and fix potential memory leaks. + */ + talloc_report_full(tall_trx_ctx, stderr); return rc; } |