mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
Fixed possible problem where a file handle could stay open on memory allocation failure
This commit is contained in:
parent
87ff81a499
commit
01770f0e5b
@ -616,7 +616,11 @@ int loadModules(const char* filename)
|
|||||||
|
|
||||||
CModule* cc = new CModule( path.c_str() );
|
CModule* cc = new CModule( path.c_str() );
|
||||||
|
|
||||||
if ( cc == 0 ) return loaded;
|
if ( cc == 0 )
|
||||||
|
{
|
||||||
|
fclose(fp);
|
||||||
|
return loaded;
|
||||||
|
}
|
||||||
|
|
||||||
cc->queryModule();
|
cc->queryModule();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user