Skip to content

Commit 3239100

Browse files
committed
Merge branch 'ml/commit-graph-expire-dir-leak-fix'
A result from opendir() was leaking in the commit-graph expiration codepath, which has been plugged. * ml/commit-graph-expire-dir-leak-fix: commit-graph: Fix missing closedir in expire_commit_graphs
2 parents f73ad8f + 12f1ae5 commit 3239100

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

commit-graph.c

+2
Original file line numberDiff line numberDiff line change
@@ -2265,6 +2265,8 @@ static void expire_commit_graphs(struct write_commit_graph_context *ctx)
22652265
}
22662266

22672267
out:
2268+
if(dir)
2269+
closedir(dir);
22682270
strbuf_release(&path);
22692271
}
22702272

0 commit comments

Comments
 (0)