diff options
author | Donald Sharp <sharpd@nvidia.com> | 2024-08-30 15:05:11 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2024-09-01 19:07:46 +0200 |
commit | d97c535c1e11904585b97da894d49b766b2d270a (patch) | |
tree | 5dea632b43d39fdaa3384563913ad8abec168fbb /vrrpd | |
parent | isisd: in isis_mt.c use appropriate memory allocator (diff) | |
download | frr-d97c535c1e11904585b97da894d49b766b2d270a.tar.xz frr-d97c535c1e11904585b97da894d49b766b2d270a.zip |
*: Create termtable specific temp memory
When trying to track down a MTYPE_TMP memory leak
it's harder to search for it when you happen to
have some usage of ttable_dump. Let's just give
it it's own memory type so that we can avoid
confusion in the future.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'vrrpd')
-rw-r--r-- | vrrpd/vrrp_vty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vrrpd/vrrp_vty.c b/vrrpd/vrrp_vty.c index 985354af3..59794d929 100644 --- a/vrrpd/vrrp_vty.c +++ b/vrrpd/vrrp_vty.c @@ -590,7 +590,7 @@ static void vrrp_show(struct vty *vty, struct vrrp_vrouter *vr) char *table = ttable_dump(tt, "\n"); vty_out(vty, "\n%s\n", table); - XFREE(MTYPE_TMP, table); + XFREE(MTYPE_TMP_TTABLE, table); ttable_del(tt); } @@ -695,7 +695,7 @@ DEFPY_YANG(vrrp_vrid_show_summary, char *table = ttable_dump(tt, "\n"); vty_out(vty, "\n%s\n", table); - XFREE(MTYPE_TMP, table); + XFREE(MTYPE_TMP_TTABLE, table); ttable_del(tt); list_delete(&ll); |