git/builtin
Jeff King 27ed6ccc12 worktree: fix leak in check_clean_worktree()
We allocate a child_env strvec but never free its memory. Instead, let's
just use the strvec that our child_process struct provides, which is
cleaned up automatically when we run the command.

And while we're moving the initialization of the child_process around,
let's switch it to use the official init function (zero-initializing it
works OK, since strvec is happy enough with that, but it sets a bad
example).

Signed-off-by: Jeff King <peff@peff.net>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2020-08-27 08:30:17 -07:00
..
2020-04-28 10:47:10 -07:00
2020-05-05 14:54:27 -07:00
2019-11-11 11:46:29 +09:00
2020-06-08 18:06:30 -07:00
2020-07-06 22:09:17 -07:00
2020-05-13 12:19:19 -07:00
2020-06-25 12:27:47 -07:00
2020-06-29 14:17:24 -07:00
2020-03-24 15:04:43 -07:00
2020-07-06 22:09:15 -07:00
2020-05-05 14:54:27 -07:00
2020-05-01 13:39:59 -07:00
2020-05-05 14:54:27 -07:00
2019-05-13 14:22:54 +09:00
2020-04-28 10:47:10 -07:00
2020-03-24 15:04:44 -07:00
2020-05-13 12:19:18 -07:00
2020-07-06 22:09:16 -07:00
2020-05-13 12:19:19 -07:00
2020-04-28 10:47:10 -07:00
2020-05-13 12:19:18 -07:00
2020-04-28 10:47:10 -07:00
2020-05-13 12:19:18 -07:00
2020-04-28 10:47:10 -07:00
2020-04-28 10:47:10 -07:00
2019-06-19 08:19:21 -07:00