diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2017-01-26 21:57:58 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-01-31 15:28:39 +0100 |
commit | 3a8b1ac043bc7be3cd8e1c58b977febd8cb6958d (patch) | |
tree | b12360d2d9802b0908b79831dfa4b63fe3c6812a /tests | |
parent | lib: move at_close call in vty_stdio to end (diff) | |
download | frr-3a8b1ac043bc7be3cd8e1c58b977febd8cb6958d.tar.xz frr-3a8b1ac043bc7be3cd8e1c58b977febd8cb6958d.zip |
tests/testcli: cleanup at exit
Call the proper termination functions so we can see memory leaks.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/common-cli.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/common-cli.c b/tests/common-cli.c index 7f7d253e6..47476711c 100644 --- a/tests/common-cli.c +++ b/tests/common-cli.c @@ -49,6 +49,12 @@ int dump_args(struct vty *vty, const char *descr, static void vty_do_exit(void) { printf ("\nend.\n"); + cmd_terminate (); + vty_terminate (); + thread_master_free (master); + closezlog (zlog_default); + + log_memstats_stderr ("testcli"); exit (0); } |