diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-09-22 00:23:14 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-09-22 00:23:14 +0300 |
commit | 3239100b5a0135fb5d50a023fef7fdd7325f101a (patch) | |
tree | 02444fc62ac27a22ca4afb41a441451fca1e8942 | |
parent | f73ad8f75f65f5e11c1004f58600a4659b8f0989 (diff) | |
parent | 12f1ae53243d3ff06a956da1846dde6f32498342 (diff) |
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
-rw-r--r-- | commit-graph.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/commit-graph.c b/commit-graph.c index 06f7d9e0b6..a7d8755932 100644 --- a/commit-graph.c +++ b/commit-graph.c @@ -2265,6 +2265,8 @@ static void expire_commit_graphs(struct write_commit_graph_context *ctx) } out: + if(dir) + closedir(dir); strbuf_release(&path); } |