Releases 4.0 and earlier of the git plugin use JGit to open a repository in the AbstractGitSCMSource.retrieve() method and fail to explicitly close the repository. That method is used for Jenkins pipeline access.
That may cause a file handle leak when that method is called.