From: Guus Sliepen Date: Tue, 21 Dec 2010 15:01:54 +0000 (+0100) Subject: Add missing closedir() after opendir(). X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9da5496ddfbef76aa17dd1bb3da4b4abf2a8b9b5;p=quix0rs-blobwars.git Add missing closedir() after opendir(). Found by cppcheck. --- 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]; }