commit: fix memory leak in `reduce_heads()`
commitcb7b29eb67772d08e2365ed07ede9d954d0344c1
authorMartin Ågren <martin.agren@gmail.com>
Fri, 22 Sep 2017 23:34:50 +0000 (23 01:34 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 Sep 2017 01:05:51 +0000 (24 10:05 +0900)
treef5eb5e520818e9290bc73e8684c55680886b8aa8
parentdd1055ed594f8fef18779cce3cd921c4ac66cf9c
commit: fix memory leak in `reduce_heads()`

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>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c