mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 07:21:53 +00:00
(svn r26087) -Fix: file descriptor leak when finding a corrupt tar
This commit is contained in:
parent
83eeba28b7
commit
3eecd246eb
@ -781,6 +781,7 @@ bool TarScanner::AddFile(const char *filename, size_t basepath_length, const cha
|
||||
if (memcmp(&th, &empty[0], 512) == 0) continue;
|
||||
|
||||
DEBUG(misc, 0, "The file '%s' isn't a valid tar-file", filename);
|
||||
fclose(f);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user