diff options
Diffstat (limited to 'src/common/sql.c')
-rw-r--r-- | src/common/sql.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/sql.c b/src/common/sql.c index abc2ed57a..f0b2365a4 100644 --- a/src/common/sql.c +++ b/src/common/sql.c @@ -1031,8 +1031,10 @@ void Sql_HerculesUpdateCheck(Sql* self) { continue; } - if( fgetc(ufp) != '#' ) + if( fgetc(ufp) != '#' ) { + fclose(ufp); continue; + } fseek (ufp,1,SEEK_SET);/* woo. skip the # */ |