diff --git a/dcapi/boinc/client.C b/dcapi/boinc/client.C index 0368835280..9a389ab507 100644 --- a/dcapi/boinc/client.C +++ b/dcapi/boinc/client.C @@ -56,6 +56,7 @@ int DC_getMaxSubresults(void) while ((d = readdir(dir))) if (!strncasecmp(d->d_name, SUBRESULT_PFX, strlen(SUBRESULT_PFX))) nsubs++; + closedir(dir); return nsubs; }