]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Close directory when done with it. Bug found by Coverity
authorAlan T. DeKok <aland@freeradius.org>
Thu, 6 Sep 2012 09:21:09 +0000 (11:21 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 6 Sep 2012 09:33:18 +0000 (11:33 +0200)
src/main/client.c

index dbfaa1e6e9d2a5531bdd32de0bc820e10fb6bfbc..d6aea16ce45678bb2a7d57b1d9ab814280680d8d 100644 (file)
@@ -890,6 +890,7 @@ RADCLIENT_LIST *clients_parse_section(CONF_SECTION *section)
                                        return NULL;
                                }
                        } /* loop over the directory */
+                       closedir(dir);
                }
 #endif /* HAVE_DIRENT_H */
 #endif /* WITH_DYNAMIC_CLIENTS */