From: Alan T. DeKok Date: Thu, 6 Sep 2012 09:21:09 +0000 (+0200) Subject: Close directory when done with it. Bug found by Coverity X-Git-Tag: release_2_2_0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=276107166d4908166987404987625d964f622fa3;p=thirdparty%2Ffreeradius-server.git Close directory when done with it. Bug found by Coverity --- diff --git a/src/main/client.c b/src/main/client.c index dbfaa1e6e9d..d6aea16ce45 100644 --- a/src/main/client.c +++ b/src/main/client.c @@ -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 */