aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/os_file.c1
1 files changed, 0 insertions, 1 deletions
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;
}