On Mon, May 08, 2023 at 03:29:22PM -0700, Junio C Hamano wrote: > Taylor Blau <me@xxxxxxxxxxxx> writes: > > > From: Jeff King <peff@xxxxxxxx> > > > > We did not bother to clean up at all in branch/tag, and for-each-ref > > only hit a few elements. So this is probably cleaning up leaks, but I > > didn't check yet. > > > > Note that the reachable_from and unreachable_from lists should be > > cleaned as they are used. So this is just covering any case where we > > might bail before running the reachability check. > > --- > > Not signed-off? Oops. Sorry about that, this should be: Signed-off-by: Jeff King <peff@xxxxxxxx> Signed-off-by: Taylor Blau <me@xxxxxxxxxxxx> > I wonder if structure assignment "*filter = blank" is easier to see > but I think we've seen this "_INIT; memcpy()" dance before. Yeah, this matches how many other _init() functions work (just looking through the output of `git grep -B3 memcpy | grep -A3 _init`). Thanks, Taylor