mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-15 18:10:18 +01: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> (cherry picked from commit1667360f7d)
This commit is contained in:
parent
1a4e7d7293
commit
ba255cdd50
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