aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-08-14 19:13:15 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-08-14 19:13:15 +0700
commitd8d4d8caaef686ddb77cee05ed1299ba9e9f5dfb (patch)
tree20d2d77e829eb60f220618cce766e4a900930320 /src
parentb874486e8e48f033204bfcc86871dd851266d440 (diff)
osmo-msc: free the VTY talloc context on exit
This is a follow up change before enabling the track of NULL talloc contexts. Since there is no other way to deinitialize libosmovty, let's free its root context on exit. Otherwise one would see lots of memory chunks on exit... Change-Id: I278f85f023210de6b4626d4493d10d20996f606a
Diffstat (limited to 'src')
-rw-r--r--src/osmo-msc/msc_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/osmo-msc/msc_main.c b/src/osmo-msc/msc_main.c
index b1bb52a63..2159d656a 100644
--- a/src/osmo-msc/msc_main.c
+++ b/src/osmo-msc/msc_main.c
@@ -710,6 +710,9 @@ TODO: we probably want some of the _net_ ctrl commands from bsc_base_ctrl_cmds_i
talloc_report_full(tall_msc_ctx, stderr);
talloc_free(tall_msc_ctx);
+ /* FIXME: VTY code still uses NULL-context */
+ talloc_free(tall_vty_ctx);
+
/**
* Report the heap state of NULL context, then free,
* so both ASAN and Valgrind are happy...