mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 02:43:41 +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)
|
static void vty_do_exit(void)
|
||||||
{
|
{
|
||||||
printf ("\nend.\n");
|
printf ("\nend.\n");
|
||||||
|
cmd_terminate ();
|
||||||
|
vty_terminate ();
|
||||||
|
thread_master_free (master);
|
||||||
|
closezlog (zlog_default);
|
||||||
|
|
||||||
|
log_memstats_stderr ("testcli");
|
||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user