On 4/5/2021 1:16 PM, Tom Saeger wrote: > On Mon, Apr 05, 2021 at 01:04:15PM +0000, Derrick Stolee via GitGitGadget wrote: >> From: Derrick Stolee <dstolee@xxxxxxxxxxxxx> >> + strvec_push(&child.args, refspec_item_format(&replace)); > > see comment on 3/5, think refspec_item_format is leaking here. > this code looks fine though. I will respond to the comments on patch 3, but this is the reason a static strbuf is used: we can print like this without needing to store the buffer in a variable and free() it here. Seemed like an easier-to-use API for a non-critical area of code. I'll continue the discussion over on that patch thread. Thanks, -Stolee