]> granicus.if.org Git - pdns/commitdiff
Plug leak of include-dir directory pointers
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Sat, 24 Aug 2013 12:58:12 +0000 (14:58 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Sat, 24 Aug 2013 12:58:12 +0000 (14:58 +0200)
Fix for Coverity CID 1029884.

pdns/arguments.cc

index f1b279030bee46074330d80bc4483430a238b678..c0ea903f1c8ff9e21557f8cc0733fba5ed19aacc 100644 (file)
@@ -505,6 +505,8 @@ bool ArgvMap::file(const char *fname, bool lax, bool included)
                 throw ArgException(fn + " could not be parsed");
             }
       }
+
+      closedir(dir);
   }
 
   return true;