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/termtable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/termtable.c') diff --git a/lib/termtable.c b/lib/termtable.c index 88cc25bf68..ce19701389 100644 --- a/lib/termtable.c +++ b/lib/termtable.c @@ -363,7 +363,7 @@ char *ttable_dump(struct ttable *tt, const char *newline) memcpy(&right[0], newline, nl_len); /* allocate print buffer */ - buf = XCALLOC(MTYPE_TMP, width * (nlines + 1) + 1); + buf = XCALLOC(MTYPE_TMP_TTABLE, width * (nlines + 1) + 1); pos = 0; if (tt->style.border.top_on) { -- cgit v1.2.3