diff options
Diffstat (limited to 'sha1_file.c')
-rw-r--r-- | sha1_file.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sha1_file.c b/sha1_file.c index b2c6648085..1356ecb874 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -3870,7 +3870,6 @@ int read_loose_object(const char *path, void **contents) { int ret = -1; - int fd = -1; void *map = NULL; unsigned long mapsize; git_zstream stream; @@ -3920,7 +3919,5 @@ int read_loose_object(const char *path, out: if (map) munmap(map, mapsize); - if (fd >= 0) - close(fd); return ret; } |