diff --git a/src/fios.cpp b/src/fios.cpp --- a/src/fios.cpp +++ b/src/fios.cpp @@ -344,6 +344,7 @@ static void GetFileTitle(const char *fil size_t read = fread(title, 1, last - title, f); assert(title + read <= last); title[read] = '\0'; + FioFCloseFile(f); } /**