mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 08:08:06 +02:00
util/os_file: fix double-close()
Fixes: 955c63d364 ("util/os_file: resize buffer to what was actually needed")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
43d470404c
commit
1667360f7d
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue