Re: [PATCH] commit: fix memory leak in `reduce_heads()`
- From
Jeff King <peff@peff.net>
- Date
- Sep 20, 2017, 20:15 UTC
- Message-ID
- <20170920201532.paynyzq7ln7cadqc@sigill.intra.peff.net>
- In-Reply-To
- <1505936846-2195-3-git-send-email-martin.agren@gmail.com>
On Wed, Sep 20, 2017 at 09:47:25PM +0200, Martin Ågren wrote:
> We don't free the temporary scratch space we use with > `remove_redundant()`. Free it similar to how we do it in > `get_merge_bases_many_0()`.
Yep, seems very straightforward, and there are no code paths where we wouldn't want this.
-Peff