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:25 +0000 (11:33 +0200)
src/main/client.c

index 07ae6a9..d50df0e 100644 (file)
@@ -933,6 +933,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 */