Files
git/builtin
Taylor Blau e6432e0f1f builtin/repack.c: avoid leaking child arguments
`git repack` invokes a handful of child processes: one to write the
actual pack, and optionally ones to repack promisor objects and update
the MIDX.

Most of these are freed automatically by calling `start_command()` (which
invokes it on error) and `finish_command()` which calls it
automatically.

But repack_promisor_objects() can initialize a child_process, populate
its array of arguments, and then return from the function before even
calling start_command().

Make sure that the prepared list of arguments is freed by calling
child_process_clear() ourselves to avoid leaking memory along this path.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2021-10-28 15:31:51 -07:00
..
2021-10-13 15:15:57 -07:00
2020-07-30 19:18:06 -07:00
2020-10-16 12:30:45 -07:00
2021-02-25 16:43:30 -08:00
2021-02-25 16:43:30 -08:00
2021-07-28 13:17:59 -07:00
2021-10-11 10:21:48 -07:00
2020-03-24 15:04:43 -07:00
2021-06-02 07:34:27 +09:00
2021-09-23 13:44:46 -07:00
2021-10-13 15:15:58 -07:00
2021-04-14 13:47:21 -07:00
2021-10-13 15:15:57 -07:00
2021-09-28 10:31:02 -07:00
2020-03-24 15:04:44 -07:00
2021-01-25 14:19:19 -08:00
2020-07-30 19:18:06 -07:00
2020-08-11 18:04:11 -07:00