Re: [PATCH] rerere: plug memory leaks upon "rerere forget" failure
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- May 19, 2016, 19:43 UTC
- Message-ID
- <573E1758.8090801@kdbg.org>
- In-Reply-To
- <xmqqpossi31p.fsf@gitster.mtv.corp.google.com>
Am 12.05.2016 um 01:32 schrieb Junio C Hamano:
Show 7 quoted lines
> + if (unlink(filename)) {
> + if (errno == ENOENT)
> + error("no remembered resolution for %s", path);
> + else
> + error("cannot unlink %s: %s", filename, strerror(errno));
> + goto fail_exit;
> + };If you haven't merged this topic yet, you might want to remove this superfluous empty statement.
-- Hannes