libgit2/libgit2 — pull request #1101 by csware (2012-11-24 14:51:46+00:00)
Title: pack.c: Set p->mwf.fd to -1 on error

If p->mwf.fd is e.g. -2 then it is closed in packfile_free and an exception might be thrown.

Signed-off-by: Sven Strickroth