summaryrefslogtreecommitdiff
path: root/gitweb/static/js/javascript-detection.js
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-11-20 14:39:33 +0100
committerJunio C Hamano <gitster@pobox.com>2024-11-21 08:23:41 +0900
commita13d4a19d2b260e27b262292f07f5f315f04e07d (patch)
tree044ee4ed6e829bca558433be078f5c203118dfe5 /gitweb/static/js/javascript-detection.js
parent96ab0e7b8b586322c1da6bbcd40773a54472679b (diff)
bisect: fix leaking `current_bad_oid`
When reading bisect refs we read the reference mapping to the "bad" term into the global `current_bad_oid` variable. This is an allocated string, but because it is global we never have to free it. This changes though when `register_ref()` is being called multiple times, at which point we'll overwrite the previous pointer and thus make it unreachable. Fix this issue by freeing the previous value. This leak is exposed by t6030, but plugging it 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>
Diffstat (limited to 'gitweb/static/js/javascript-detection.js')
0 files changed, 0 insertions, 0 deletions