mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 03:24:52 +00:00
imageutils: Do not leak malformed bitmap (.bmp) file handle (thanks valgrind and extension typo to find it out!)
This commit is contained in:
parent
0759e2e8e1
commit
4eba76ccc9
1 changed files with 1 additions and 0 deletions
|
@ -713,6 +713,7 @@ unsigned char *ImgUtl_ReadBMPAsRGBA( const char *bmpPath, int &width, int &heigh
|
|||
}
|
||||
else
|
||||
{
|
||||
fclose( fp );
|
||||
errcode = CE_ERROR_PARSING_SOURCE;
|
||||
}
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue