Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
commit-graph: UNLEAK before die()
author
Derrick Stolee
<dstolee@microsoft.com>
Wed, 27 Jun 2018 13:24:27 +0000
(09:24 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 27 Jun 2018 17:27:04 +0000
(10:27 -0700)
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit-graph.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
55abcb4
)
diff --git
a/builtin/commit-graph.c
b/builtin/commit-graph.c
index 37420ae0fde81ea2e957bedd4949a2eba0cd6ff9..f0875b8bf3c4700a815b0b8a04a0d7035f341c8e 100644
(file)
--- a/
builtin/commit-graph.c
+++ b/
builtin/commit-graph.c
@@
-51,8
+51,11
@@
static int graph_read(int argc, const char **argv)
graph_name = get_commit_graph_filename(opts.obj_dir);
graph = load_commit_graph_one(graph_name);
- if (!graph)
+ if (!graph) {
+ UNLEAK(graph_name);
die("graph file %s does not exist", graph_name);
+ }
+
FREE_AND_NULL(graph_name);
printf("header: %08x %d %d %d %d\n",