tr2: stop leaking "thread_name" memory
commit48f68715b14b47395a5cd63568a9a29beea8aa6f
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 27 Aug 2021 08:02:15 +0000 (27 10:02 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 Sep 2021 18:07:59 +0000 (7 11:07 -0700)
treebdafdfffb48e690769d0c648dab65478963034e1
parentf2cc8881d70284ff6277185f8ae96c6f187208b7
tr2: stop leaking "thread_name" memory

Fix a memory leak introduced in ee4512ed481 (trace2: create new
combined trace facility, 2019-02-22), we were doing a free() of other
memory allocated in tr2tls_create_self(), but not the "thread_name"
"struct strbuf".

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Acked-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trace2/tr2_tls.c