We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cce044d commit 0747fb4Copy full SHA for 0747fb4
sha1_file.c
@@ -3870,7 +3870,6 @@ int read_loose_object(const char *path,
3870
void **contents)
3871
{
3872
int ret = -1;
3873
- int fd = -1;
3874
void *map = NULL;
3875
unsigned long mapsize;
3876
git_zstream stream;
@@ -3920,7 +3919,5 @@ int read_loose_object(const char *path,
3920
3919
out:
3921
if (map)
3922
munmap(map, mapsize);
3923
- if (fd >= 0)
3924
- close(fd);
3925
return ret;
3926
}
0 commit comments