identify an error source correctly
diff --git a/lib/commit_graph.c b/lib/commit_graph.c
index 24bb6f0..cac2b8c 100644
--- a/lib/commit_graph.c
+++ b/lib/commit_graph.c
@@ -405,7 +405,7 @@ got_commit_graph_open(struct got_commit_graph **graph,
*graph = alloc_graph(path);
if (*graph == NULL) {
got_object_commit_close(commit);
- return got_error_prefix_errno("got_object_commit_close");
+ return got_error_prefix_errno("alloc_graph");
}
if (first_parent_traversal)