fix handle leak in Vfs::Fs_file_system

Issue #1648
This commit is contained in:
Emery Hemingway 2015-10-07 18:45:34 +02:00 committed by Christian Helmuth
parent 48fd034cfe
commit 1d4bd10701
1 changed files with 1 additions and 1 deletions

View File

@ -420,7 +420,7 @@ class Vfs::Fs_file_system : public File_system
Absolute_path abs_path(path);
try {
_fs.dir(abs_path.base(), true);
_fs.close(_fs.dir(abs_path.base(), true));
return MKDIR_OK;
}
catch (::File_system::Permission_denied) { return MKDIR_ERR_NO_PERM; }