Thread (2 messages) 2 messages, 2 authors, 2017-05-02

Re: [PATCH 1/5] submodule_move_head: fix leak of struct child_process

flat view

From: Stefan Beller <hidden>
Date: 2017-05-02 04:21:03

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help