commit-graph: UNLEAK before die()

Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Derrick Stolee committed Jun 27, 2018 at 09:24 UTC 883e5c7fe90aa2ef9f6efd1ef476ca281d09e79b
1 file changed +4 -1
builtin/commit-graph.c
+4 -1
@@ -51,8 +51,11 @@ static int graph_read(int argc, const char **argv)
51 graph_name = get_commit_graph_filename(opts.obj_dir);
52 graph = load_commit_graph_one(graph_name);
53
54 - if (!graph)
54 + if (!graph) {
55 + UNLEAK(graph_name);
56 die("graph file %s does not exist", graph_name);
57 + }
58 +
59 FREE_AND_NULL(graph_name);
60
61 printf("header: %08x %d %d %d %d\n",