Changeset - r21010:bb451424e565
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-11-24 15:02:05
rubidium@openttd.org
(svn r26087) -Fix: file descriptor leak when finding a corrupt tar
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/fileio.cpp
Show inline comments
 
@@ -781,6 +781,7 @@ bool TarScanner::AddFile(const char *fil
 
			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;
 
		}
 

	
0 comments (0 inline, 0 general)