Skip to content

Commit

Permalink
Fix file handle leak in Image_LoadImage (#320)
Browse files Browse the repository at this point in the history
(introduced in a0f0f69aa2be066c1cb8bfd5006e49723e4e701a)
  • Loading branch information
andrei-drexler authored and vsonnier committed Jun 22, 2024
1 parent d04c0b4 commit 0e34f4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Quake/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ byte *Image_LoadImage (const char *name, int *width, int *height, enum srcformat
}
else
Con_Warning ("couldn't load %s (%s)\n", loadfilename, stbi_failure_reason ());
fclose (f);
return data;
}
}
Expand Down

0 comments on commit 0e34f4d

Please sign in to comment.