]> git.mxchange.org Git - quix0rs-blobwars.git/commitdiff
Add missing closedir() after opendir().
authorGuus Sliepen <guus@debian.org>
Tue, 21 Dec 2010 15:01:54 +0000 (16:01 +0100)
committerGuus Sliepen <guus@debian.org>
Tue, 21 Dec 2010 15:01:54 +0000 (16:01 +0100)
Found by cppcheck.

src/pak.cpp

index ee254c7ac86d9f998fc8111794ec0709705daf36..257908a702d8b45b3028b4d1561848b56fb964d6 100644 (file)
@@ -75,6 +75,8 @@ void countFiles(const char *dirName)
                        totalFiles++;
                }
        }
+
+       closedir(dirp);
        
        fileData = new FileData[totalFiles];
 }