Thread (37 messages) 37 messages, 5 authors, 2018-03-05

Re: [PATCH 3/7] worktree move: new command

From: Jeff King <hidden>
Date: 2018-02-06 02:13:20

On Mon, Feb 05, 2018 at 08:28:10PM +0700, Duy Nguyen wrote:
quoted
quoted
This is still leaking 'worktrees'[1]. You probably want
free_worktrees() immediately after the find_worktree() invocation.
Sorry, free_worktrees() after the last use of 'wt' since you still
need to access its fields, which would be the end of the function.
I learned SANITIZE=leak today! It not only catches this but also "dst".

Jeff is there any ongoing effort to make the test suite pass with
SANITIZE=leak? My t2038 passed, so I went ahead with the full test
suite and saw so many failures. I did see in your original mails that
you focused on t0000 and t0001 only..
Yeah, I did those two scripts to try to prove to myself that the
approach was good. But I haven't really pushed it any further.

Martin Ågren (cc'd) did some follow-up work, but I think we still have a
long way to go. My hope is that people who are interested in
leak-checking their new code can run some specific script they're
interested in, and maybe fix up one or two nearby bits while they're
there (either by fixing a leak, or just annotating via UNLEAK). Then we
can slowly converge on correctness. :)

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help