Patrick Steinhardt <ps@xxxxxx> 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.