aboutsummaryrefslogtreecommitdiffstats
path: root/entry.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-06-07 08:38:16 +0200
committerJunio C Hamano <gitster@pobox.com>2024-06-07 10:30:51 -0700
commit394affd46dc9b0c805df6e999837aa297f844fc0 (patch)
tree6b1e98649783221884f085b775f7346ebcfdd623 /entry.c
parent42d2ad55566013535c16b80fc2d445da93cceed3 (diff)
downloadgit-394affd46dc9b0c805df6e999837aa297f844fc0.tar.gz
line-log: always allocate the output prefix
The returned string by `output_prefix()` is sometimes a string constant and sometimes an allocated string. This has been fine until now because we always leak the allocated strings, and thus we never tried to free the string constant. Fix the code to always return an allocated string and free the returned value at all callsites. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'entry.c')
0 files changed, 0 insertions, 0 deletions