Re: [PATCH] commit: fix memory leak in `reduce_heads()`
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Sep 20, 2017, 21:34 UTC
- Message-ID
- <20170920213417.GG27425@aiede.mtv.corp.google.com>
- In-Reply-To
- <1505936846-2195-3-git-send-email-martin.agren@gmail.com>
Martin Ågren wrote:
Show 8 quoted lines
> 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()`. > > Signed-off-by: Martin Ågren <martin.agren@gmail.com> > --- > commit.c | 1 + > 1 file changed, 1 insertion(+)
Good catch. Thanks.
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>