summaryrefslogtreecommitdiff
path: root/commit-graph.c
diff options
context:
space:
mode:
authorJiang Xin <worldhello.net@gmail.com>2022-09-23 16:50:32 +0800
committerJiang Xin <worldhello.net@gmail.com>2022-09-23 16:50:32 +0800
commiteb0d7810948e6fd6debf62e842fbaaa6da512bde (patch)
treec50ca0ac4e4ca80a78e89331a11afe1e527533c0 /commit-graph.c
parent82958c3c6dbfd72b61a561f24eadf3c5d7fcd0b4 (diff)
parent4b79ee4b0cd1130ba8907029cdc5f6a1632aca26 (diff)
Merge branch 'main' of github.com:git/git
* 'main' of github.com:git/git: list-objects-filter: initialize sub-filter structs Git 2.38-rc1 Final batch before -rc1 builtin/diagnose.c: don't translate the two mode values t/Makefile: remove 'test-results' on 'make clean' gc: don't translate literal commands Documentation: clean up various typos in technical docs Documentation: clean up a few misspelled word typos version: fix builtin linking & documentation diagnose: add to command-list.txt Documentation: add ReviewingGuidelines commit-graph: Fix missing closedir in expire_commit_graphs diagnose.c: refactor to safely use 'd_type' help: fix doubled words in explanation for developer interfaces api docs: link to html version of api-trace2 docs: fix a few recently broken links reftable: use a pointer for pq_entry param
Diffstat (limited to 'commit-graph.c')
-rw-r--r--commit-graph.c2
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);
}