]> git.ipfire.org Git - thirdparty/git.git/commit
trace2: destroy context stored in thread-local storage
authorPatrick Steinhardt <ps@pks.im>
Thu, 26 Sep 2024 11:46:45 +0000 (13:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Sep 2024 15:25:36 +0000 (08:25 -0700)
commit64d9adafba5b3024414760838d9d81f68738e813
treed8a890b1e1a6ff6120feb0f9f9567113acfe1369
parent7f795a17154a2aeb80a7f52bfdaeef14fe298d68
trace2: destroy context stored in thread-local storage

Each thread may have a specific context in the trace2 subsystem that we
set up via thread-local storage. We do not set up a destructor for this
data though, which means that the context data will leak.

Plug this leak by installing a destructor. This leak is exposed by
t7814, but plugging it alone does not make the whole test suite pass.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trace2/tr2_tls.c