diff --git a/src/util/os_file.c b/src/util/os_file.c index ae41506332d..c670e127c6b 100644 --- a/src/util/os_file.c +++ b/src/util/os_file.c @@ -120,7 +120,6 @@ os_read_file(const char *filename) char *newbuf = realloc(buf, len); if (!newbuf) { free(buf); - close(fd); errno = -ENOMEM; return NULL; }