mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-09-28 13:12:56 -04:00
attempt to fix a couple potential leaks...i'm rusty so forgive me if it's stupid
This commit is contained in:
@@ -31,6 +31,7 @@ bool CConfig::LoadFile(char * file)
|
||||
if (fp == NULL || fp == (FILE *)-1)
|
||||
{
|
||||
//fprintf(stderr,"Failed to open config file %s!",file);
|
||||
delete fp;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user