Close file descriptor when writing a blob

This commit is contained in:
Vicent Marti 2011-04-15 20:32:31 +03:00
parent 90d743cd5d
commit 2571cc3cff

View File

@ -115,6 +115,7 @@ int git_blob_create_fromfile(git_oid *oid, git_repository *repo, const char *pat
error = stream->finalize_write(oid, stream);
stream->free(stream);
gitfo_close(fd);
return error;
}