diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-11-20 14:39:40 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-11-21 08:23:43 +0900 |
commit | 1dd7c32daa7d8a4b71d9204f1edbb09a7241e18f (patch) | |
tree | 397df6215322ce2713d2ab8beb36f91d681a9450 /gitweb/static/js/lib/common-lib.js | |
parent | ffc5c046fb4f47e149687963706bb2390f4eed61 (diff) |
git: refactor builtin handling to use a `struct strvec`
Similar as with the preceding commit, `handle_builtin()` does not
properly track lifetimes of the `argv` array and its strings. As it may
end up modifying the array this can lead to memory leaks in case it
contains allocated strings.
Refactor the function to use a `struct strvec` instead.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/static/js/lib/common-lib.js')
0 files changed, 0 insertions, 0 deletions