diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-06-11 11:19:36 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-06-11 22:15:05 +0200 |
commit | afb0653d2373dc72ad4a9c89b7d17b660d194f04 (patch) | |
tree | ddfb867e843bb1d3dd83b3739bb7a1dfc4db874c /t/t7201-co.sh | |
parent | bundle: plug leaks in `create_bundle()` (diff) | |
download | git-afb0653d2373dc72ad4a9c89b7d17b660d194f04.tar.xz git-afb0653d2373dc72ad4a9c89b7d17b660d194f04.zip |
biultin/rev-parse: fix memory leaks in `--parseopt` mode
We have a bunch of memory leaks in git-rev-parse(1)'s `--parseopt` mode.
Refactor the code to use `struct strvec`s to make it easier for us to
track the lifecycle of those leaking variables and then free them.
While at it, remove the unneeded static lifetime for some of the
variables.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7201-co.sh')
0 files changed, 0 insertions, 0 deletions