summaryrefslogtreecommitdiff
path: root/isisd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-08-30 09:05:11 -0400
committerDonald Sharp <sharpd@nvidia.com>2024-09-01 13:07:46 -0400
commitd97c535c1e11904585b97da894d49b766b2d270a (patch)
tree5dea632b43d39fdaa3384563913ad8abec168fbb /isisd
parenta556f6e38b404ae1b90a52b23e5afacd64ab4d45 (diff)
*: 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 'isisd')
-rw-r--r--isisd/isis_spf.c6
-rw-r--r--isisd/isis_sr.c2
-rw-r--r--isisd/isis_srv6.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/isisd/isis_spf.c b/isisd/isis_spf.c
index 86302076f8..0f37ed012a 100644
--- a/isisd/isis_spf.c
+++ b/isisd/isis_spf.c
@@ -2337,7 +2337,7 @@ static void isis_print_paths(struct vty *vty, struct isis_vertex_queue *queue,
if (json == NULL) {
table = ttable_dump(tt, "\n");
vty_out(vty, "%s\n", table);
- XFREE(MTYPE_TMP, table);
+ XFREE(MTYPE_TMP_TTABLE, table);
} else
*json = ttable_json_with_json_text(
tt, "ssdsss",
@@ -3016,7 +3016,7 @@ void isis_print_routes(struct vty *vty, struct isis_spftree *spftree,
table = ttable_dump(tt, "\n");
vty_out(vty, "%s\n", table);
- XFREE(MTYPE_TMP, table);
+ XFREE(MTYPE_TMP_TTABLE, table);
} else if (json) {
*json = ttable_json_with_json_text(
tt, prefix_sid ? "sdssdsdd" : "sdsss",
@@ -3458,7 +3458,7 @@ static void isis_print_frr_summary(struct vty *vty,
/* Dump the generated table. */
table = ttable_dump(tt, "\n");
vty_out(vty, "%s\n", table);
- XFREE(MTYPE_TMP, table);
+ XFREE(MTYPE_TMP_TTABLE, table);
ttable_del(tt);
}
diff --git a/isisd/isis_sr.c b/isisd/isis_sr.c
index f783038006..71e0f56e03 100644
--- a/isisd/isis_sr.c
+++ b/isisd/isis_sr.c
@@ -1064,7 +1064,7 @@ static void show_node(struct vty *vty, struct isis_area *area, int level,
table = ttable_dump(tt, "\n");
vty_out(vty, "%s\n", table);
- XFREE(MTYPE_TMP, table);
+ XFREE(MTYPE_TMP_TTABLE, table);
}
ttable_del(tt);
}
diff --git a/isisd/isis_srv6.c b/isisd/isis_srv6.c
index b5974b1a62..2348bd043a 100644
--- a/isisd/isis_srv6.c
+++ b/isisd/isis_srv6.c
@@ -591,7 +591,7 @@ static void show_node(struct vty *vty, struct isis_area *area, int level)
table = ttable_dump(tt, "\n");
vty_out(vty, "%s\n", table);
- XFREE(MTYPE_TMP, table);
+ XFREE(MTYPE_TMP_TTABLE, table);
}
ttable_del(tt);
}