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.
2 parents 5bceab4 + 0747fb4 commit d7f8a37Copy full SHA for d7f8a37
sha1_file.c
@@ -3972,7 +3972,6 @@ int read_loose_object(const char *path,
3972
void **contents)
3973
{
3974
int ret = -1;
3975
- int fd = -1;
3976
void *map = NULL;
3977
unsigned long mapsize;
3978
git_zstream stream;
@@ -4022,7 +4021,5 @@ int read_loose_object(const char *path,
4022
4021
out:
4023
if (map)
4024
munmap(map, mapsize);
4025
- if (fd >= 0)
4026
- close(fd);
4027
return ret;
4028
}
0 commit comments