Re: [PATCH] refs/reftable: fix leak when copying reflog fails
On Thu, Feb 08, 2024 at 06:26:14AM +0100, Patrick Steinhardt wrote:
Show 6 quoted lines
> When copying a ref with the reftable backend we also copy the
> corresponding log records. When seeking the first log record that we're
> about to copy fails though we directly return from `write_copy_table()`
> without doing any cleanup, leaking several allocated data structures.
>
> Fix this by exiting via our common cleanup logic instead.
Thanks, this looks obviously correct to me. :)
-Peff