diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-09-30 11:13:10 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-09-30 11:23:02 -0700 |
| commit | 9a48fc1da277f37b602f48e8bec22f4725ebf877 (patch) | |
| tree | 807f4459b7a7588952096beaff73adb573286997 /diffcore-rotate.c | |
| parent | Merge branch 'jk/http-leakfixes' into ps/leakfixes-part-8 (diff) | |
| download | git-9a48fc1da277f37b602f48e8bec22f4725ebf877.tar.gz git-9a48fc1da277f37b602f48e8bec22f4725ebf877.zip | |
builtin/annotate: fix leaking args vector
We're leaking the args vector in git-annotate(1) because we never clear
it. Fixing it isn't as easy as calling `strvec_clear()` though because
calling `cmd_blame()` will cause the underlying array to be modified.
Instead, we also need to pass a shallow copy of the argv array to the
function.
Do so to plug the memory leaks.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diffcore-rotate.c')
0 files changed, 0 insertions, 0 deletions
