Re: [PATCH] t0006: date_mode can leak .strftime_fmt member
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 16, 2021, 19:04 UTC
- Message-ID
- <xmqqlf1napn4.fsf@gitster.g>
- In-Reply-To
- <patch-1.1-15f5bd3e4f4-20211116T183025Z-avarab@gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> As there is no date_mode_release() API function, and given the > set of current callers it probably is not worth adding one, let's > release the .strftime_fmt member that is obtained from strdup() > before the caller of show_date() is done with it.
I do not know what the last line exactly wants to say. Perhaps the original author meant "after", not "before"? ;-)