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
This commit is contained in:
Junio C Hamano 2022-09-21 14:23:14 -07:00
commit 3239100b5a

View File

@ -2265,6 +2265,8 @@ static void expire_commit_graphs(struct write_commit_graph_context *ctx)
}
out:
if(dir)
closedir(dir);
strbuf_release(&path);
}