libgit2/libgit2 — pull request #1749 by csware (2013-07-25 12:56:41+00:00)
Title: Close p->mwf.fd only if necessary

Found by inspecting crashes in TortoiseGit