commit | 3c9b393ca8fdb4db53e461a6f506dd10ed6fbc85 | [log] [tgz] |
---|---|---|
author | Junio C Hamano <gitster@pobox.com> | Sun May 19 16:45:28 2019 +0900 |
committer | Junio C Hamano <gitster@pobox.com> | Sun May 19 16:45:28 2019 +0900 |
tree | 7986335bfbab708a41a58963463dddebcf9829c3 | |
parent | 6795fc8afd49ecc0ae57661a8858d6882108cef5 [diff] | |
parent | 98552f252ad4a86573d75665fc403f5e66056bb2 [diff] |
Merge branch 'js/commit-graph-parse-leakfix' Leakfix. * js/commit-graph-parse-leakfix: commit-graph: fix memory leak
diff --git a/commit-graph.c b/commit-graph.c index 7bcc9bb..7c5e548 100644 --- a/commit-graph.c +++ b/commit-graph.c
@@ -267,8 +267,10 @@ last_chunk_offset = chunk_offset; } - if (verify_commit_graph_lite(graph)) + if (verify_commit_graph_lite(graph)) { + free(graph); return NULL; + } return graph; }