mirror of https://github.com/OpenTTD/OpenTTD
(svn r26087) -Fix: file descriptor leak when finding a corrupt tar
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