diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-08-22 11:17:49 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-22 09:18:05 -0700 |
commit | 2a2d5da1f22f91242c482bd7800b3dd03915870a (patch) | |
tree | 2ee74c561c3e5b96f644324b153c036176f4c811 /gitweb/static/js/javascript-detection.js | |
parent | a09efb74e3d3b316519a398618fb6515df4337a7 (diff) |
sideband: fix leaks when configuring sideband colors
We read a bunch of configs in `use_sideband_colors()` to configure the
colors that Git should use. We never free the strings read from the
config though, causing memory leaks.
Refactor the code to use `git_config_get_string_tmp()` instead, which
does not allocate memory. As we throw the strings away after parsing
them anyway there is no need to use allocated strings.
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