diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fileio.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp index a6cb85d74..3bc5cf768 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -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; } |