commit-graph: fix memory leak
commit98552f252ad4a86573d75665fc403f5e66056bb2
authorJosh Steadmon <steadmon@google.com>
Mon, 6 May 2019 21:36:58 +0000 (6 14:36 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 May 2019 04:49:28 +0000 (7 13:49 +0900)
tree0b9ee24c30740e1f155fd496d3b15be87a414ae9
parent83232e38648b51abbcbdb56c94632b6906cc85a6
commit-graph: fix memory leak

Free the commit graph when verify_commit_graph_lite() reports an error.
Credit to OSS-Fuzz for finding this leak.

Signed-off-by: Josh Steadmon <steadmon@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-graph.c