mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 08:57:29 +00:00
tests/testcli: cleanup at exit
Call the proper termination functions so we can see memory leaks. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
dd03f8cae1
commit
3a8b1ac043
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user