diff options
author | Max <msuraev@sysmocom.de> | 2023-03-13 18:23:25 +0300 |
---|---|---|
committer | msuraev <msuraev@sysmocom.de> | 2023-04-05 10:41:48 +0000 |
commit | 028813414c864bd44a106478274b893cde4977ac (patch) | |
tree | ad1bfd204cdf61e798ee85f4c29047b4ee4ff8be | |
parent | 37dc995234c50cc5f3caf325598e7fddd52cb878 (diff) |
logging: print talloc report on exit from vty test
There's not much point in deallocating memory in a test fixture
which is about to terminate anyway. Having talloc report though
is handy to make sure we're not leaking smth.
Change-Id: I5739bceb90d36164fd4cbf21242bbe26bd1e7075
-rw-r--r-- | tests/logging/logging_vty_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/logging/logging_vty_test.c b/tests/logging/logging_vty_test.c index 15f7fc2b..c1a28533 100644 --- a/tests/logging/logging_vty_test.c +++ b/tests/logging/logging_vty_test.c @@ -285,10 +285,10 @@ int main(int argc, char **argv) osmo_select_main(0); } - log_fini(); + talloc_report(tall_vty_ctx, stderr); + talloc_report_full(root_ctx, stderr); - talloc_free(root_ctx); - talloc_free(tall_vty_ctx); + log_fini(); return 0; } |