Subject: Re: [PATCH v3 18/22] builtin/format-patch: fix various trivial memory leaks

From: Junio C Hamano <[email-masked]>
Date: Tue, 13 Aug 2024 09:55:43 -0700

Patrick Steinhardt <[email-masked]> writes:

> There are various memory leaks hit by git-format-patch(1). Basically all
> of them are trivial, except that un-setting `diffopt.no_free` requires
> us to unset the `diffopt.file` because we manually close it already.

Ah, I misread the patch.  Clearly diffopt.file is about
double-closing.  Makes sense.