From: Junio C Hamano Date: Thu, 01 Dec 2022 01:02:45 GMT Subject: Re: [PATCH 0/3] diff: build parseopts array on demand Message-ID: In-Reply-To: <0620b4a6-b80a-d8a0-5a35-857b9fe0c986@web.de> René Scharfe writes: > Calling repo_init_revisions() and release_revisions() in that order > leaks the memory allocated for the parseopts array in the embedded > struct diff_options member. Get rid of that leak by reducing the > lifetime of that array. Makes sense.