fclose(FILE*) instead of close(fileno(FILE*)) (#1758)

This is the same thing but confuses Coverity.
This commit is contained in:
Andrew Gaul
2021-09-01 19:41:55 +09:00
committed by GitHub
parent 57b2e4a4f1
commit beecf32dff

View File

@ -336,7 +336,7 @@ bool FdManager::HaveLseekHole()
result = false;
}
}
close(fd);
fclose(ptmpfp);
FdManager::checked_lseek = true;
FdManager::have_lseek_hole = result;