From 9da5496ddfbef76aa17dd1bb3da4b4abf2a8b9b5 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 21 Dec 2010 16:01:54 +0100 Subject: [PATCH] Add missing closedir() after opendir(). Found by cppcheck. --- src/pak.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pak.cpp b/src/pak.cpp index ee254c7..257908a 100644 --- a/src/pak.cpp +++ b/src/pak.cpp @@ -75,6 +75,8 @@ void countFiles(const char *dirName) totalFiles++; } } + + closedir(dirp); fileData = new FileData[totalFiles]; } -- 2.39.5