aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/merge-tree.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-22 11:17:18 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-22 09:18:04 -0700
commit82ea7e59b26644f3e289d105bf85a4109749e4b8 (patch)
tree805fe355bcd65654d9ad83d54577c26b238869f5 /builtin/merge-tree.c
parent60289b50d01f0b064b8139031dcd3a0d6dfa96a9 (diff)
downloadgit-82ea7e59b26644f3e289d105bf85a4109749e4b8.tar.gz
pretty: fix leaking key/value separator buffer
The `format_set_trailers_options()` function is responsible for parsing a custom pretty format for trailers. It puts the parsed options into a `struct process_trailer_options` structure, while the allocated memory required for this will be put into separate caller-provided arguments. It is thus the caller's responsibility to free the memory not via the options structure, but via the other parameters. While we do this alright for the separator and filter keys, we do not free the memory associated with the key/value separator. Fix this to plug this memory leak. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/merge-tree.c')
0 files changed, 0 insertions, 0 deletions