Skip to content

Commit 883e5c7

Browse files
derrickstoleegitster
authored andcommitted
commit-graph: UNLEAK before die()
Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 55abcb4 commit 883e5c7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

builtin/commit-graph.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ static int graph_read(int argc, const char **argv)
5151
graph_name = get_commit_graph_filename(opts.obj_dir);
5252
graph = load_commit_graph_one(graph_name);
5353

54-
if (!graph)
54+
if (!graph) {
55+
UNLEAK(graph_name);
5556
die("graph file %s does not exist", graph_name);
57+
}
58+
5659
FREE_AND_NULL(graph_name);
5760

5861
printf("header: %08x %d %d %d %d\n",

0 commit comments

Comments
 (0)