diff --git a/src/blob.c b/src/blob.c index bc0a08a8a..5e3c22fbf 100644 --- a/src/blob.c +++ b/src/blob.c @@ -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; }