mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 16:03:43 +00:00
Don't leak file descriptors.
This commit is contained in:
parent
0305d9143d
commit
bc2481a9be
@ -815,6 +815,8 @@ long long TimestampDir( const wxString& aDirPath, const wxString& aFilespec )
|
||||
if( S_ISREG( entry_stat.st_mode ) ) // wxFileExists()
|
||||
timestamp += entry_stat.st_mtime * 1000;
|
||||
}
|
||||
|
||||
closedir( dir );
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user