From d97c535c1e11904585b97da894d49b766b2d270a Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 30 Aug 2024 09:05:11 -0400 Subject: *: 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 --- lib/memory.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/memory.c') diff --git a/lib/memory.c b/lib/memory.c index 8fbe5c4093..ac39516edd 100644 --- a/lib/memory.c +++ b/lib/memory.c @@ -25,6 +25,7 @@ struct memgroup **mg_insert = &mg_first; DEFINE_MGROUP(LIB, "libfrr"); DEFINE_MTYPE(LIB, TMP, "Temporary memory"); +DEFINE_MTYPE(LIB, TMP_TTABLE, "Temporary memory for TTABLE"); DEFINE_MTYPE(LIB, BITFIELD, "Bitfield memory"); static inline void mt_count_alloc(struct memtype *mt, size_t size, void *ptr) -- cgit v1.2.3