diff options
| author | Miaoqian Lin <linmq006@gmail.com> | 2022-09-19 18:14:40 +0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-09-19 10:42:38 -0700 |
| commit | 12f1ae53243d3ff06a956da1846dde6f32498342 (patch) | |
| tree | f2557eaed1640aeb998d810752cb69f170cd8803 /commit-graph.c | |
| parent | Git 2.36.2 (diff) | |
| download | git-12f1ae53243d3ff06a956da1846dde6f32498342.tar.gz git-12f1ae53243d3ff06a956da1846dde6f32498342.zip | |
commit-graph: Fix missing closedir in expire_commit_graphs
The function calls opendir() but missing the corresponding
closedir() before exit the function.
Add missing closedir() to fix it.
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
| -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 2b52818731..0d44cd0fa4 100644 --- a/commit-graph.c +++ b/commit-graph.c @@ -2269,6 +2269,8 @@ static void expire_commit_graphs(struct write_commit_graph_context *ctx) } out: + if(dir) + closedir(dir); strbuf_release(&path); } |
