On Mon, May 1, 2017 at 8:07 PM, Junio C Hamano [off-list ref] wrote:
Brandon Williams [off-list ref] writes:
quoted
On 05/01, Stefan Beller wrote:
quoted
While fixing the leak of `cp`, reuse it instead of having to declare
another struct child_process.
Signed-off-by: Stefan Beller <redacted>
This shouldn't be needed as 'finish_command' does the cleanup for you by
calling 'child_prcoess_clear()'.
Yes, indeed.
It might not hurt to update the code so that the cp is reused in the
second run instead of using a separate instance cp1, but that is a
topic separate from fixing a non-existing leak.
ok, I'll drop the patch and may send another patch later for re-using cp
Thanks,
Stefan