summaryrefslogtreecommitdiff
path: root/gitweb/static/js/javascript-detection.js
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-03-25 11:03:15 +0100
committerJunio C Hamano <gitster@pobox.com>2024-03-25 09:54:07 -0700
commita75dc71f3772cee10dfb93861610d8ee413ad207 (patch)
tree385930a30d72da11bb9d251b76af515069436b84 /gitweb/static/js/javascript-detection.js
parentf89356db4a26eef47aceb2d03039fff6b1a4180d (diff)
builtin/pack-refs: release allocated memory
Some of the command line options in `cmd_pack_refs()` require us to allocate memory. This memory is never released and thus leaking, but we paper over this leak by declaring the respective variables as `static` function-level variables, which is somewhat awkward. Refactor the code to release the allocated memory and drop the `static` declaration. While at it, remove the useless `flags` variable. 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