diff options
author | Rubén Justo <rjusto@gmail.com> | 2024-04-23 00:54:08 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-04-22 16:27:42 -0700 |
commit | 5861aa84a7a5f393e953203068bd3fc5c710fc42 (patch) | |
tree | 836384e2c4024974a701ae723a11b3918f8c464c /builtin/commit.c | |
parent | 71c791605365d1873ef631bfc478fcd75080a063 (diff) |
add-interactive: plug a leak in get_untracked_files
Plug a leak we have since ab1e1cccaf (built-in add -i: re-implement
`add-untracked` in C, 2019-11-29).
This leak can be triggered with:
$ echo a | git add -i
As a curiosity, we have a somewhat similar function in builtin/stash.c,
which correctly frees the memory.
Signed-off-by: Rubén Justo <rjusto@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions