diff options
author | Eric Engestrom <[email protected]> | 2019-08-26 15:30:54 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-09-04 00:11:51 +0100 |
commit | 1667360f7d920a35191dc67b7ee120eef95e8788 (patch) | |
tree | 145a37920d96640c416b59f64a4dc6908ab51fc3 /src/util | |
parent | 43d470404c47d86d1fab93d1345e09375bcf4fb6 (diff) |
util/os_file: fix double-close()
Fixes: 955c63d3643f30d7db0c ("util/os_file: resize buffer to what was actually needed")
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/os_file.c | 1 |
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; } |