From: karthik nayak Date: Mon, 12 Aug 2024 09:05:25 GMT Subject: Re: [PATCH v2 12/22] builtin/fast-export: fix leaking diff options Message-ID: In-Reply-To: Patrick Steinhardt writes: > Before caling `handle_commit()` in a loop, we set `diffopt.no_free` such s/caling/calling > that its contents aren't getting freed inside of `handle_commit()`. We > never unset that flag though, which means that it'll ultimately leak > when calling `release_revisions()`. > > Fix this by unsetting the flag after the loop. > [snip]