close file sooner so we don't leak fds

SVN revision: 56153
This commit is contained in:
Mike Blumenkrantz 2011-01-16 01:52:45 +00:00
parent d143974767
commit 1fdff41c5e
1 changed files with 1 additions and 1 deletions

View File

@ -318,12 +318,12 @@ check(void)
if (f)
{
fgets(buf, sizeof(buf), f);
fclose(f);
buf[sizeof(buf) - 1] = 0;
if (sscanf(buf, "%i", &temp) == 1)
ret = 1;
else
goto error;
fclose(f);
}
else
goto error;