Windows: close dir when we've finished scanning

This commit is contained in:
Daniel Tipping 2019-01-10 17:42:39 +00:00
parent 6e97dc6858
commit 47d7085bc4
1 changed files with 2 additions and 0 deletions

View File

@ -549,6 +549,8 @@ static int scan(grib_context* c,grib_runtime_options* options,const char* dir) {
process(c, options, buf);
}
} while(!_findnext(handle, &fileinfo));
_findclose(handle);
}
else
{