mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-02 19:31:39 +00:00
Close file descriptor when writing a blob
This commit is contained in:
parent
90d743cd5d
commit
2571cc3cff
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user