Commit ba255cdd authored by Eric Engestrom's avatar Eric Engestrom Committed by Dylan Baker

util/os_file: fix double-close()

Fixes: 955c63d3 ("util/os_file: resize buffer to what was actually needed")
Signed-off-by: Eric Engestrom's avatarEric Engestrom <>
Reviewed-by: Tapani Pälli's avatarTapani Pälli <>
(cherry picked from commit 1667360f)
parent 1a4e7d72
......@@ -120,7 +120,6 @@ os_read_file(const char *filename)
char *newbuf = realloc(buf, len);
if (!newbuf) {
errno = -ENOMEM;
return NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment