Re: [PATCH 0/3] diff: build parseopts array on demand
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 1, 2022, 01:02 UTC
- Message-ID
- <xmqqh6ygszpm.fsf@gitster.g>
- In-Reply-To
- <0620b4a6-b80a-d8a0-5a35-857b9fe0c986@web.de>
René Scharfe <l.s.r@web.de> 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.