chore(Deps/Acelite): Update to 6.5.10 (#3450)

This commit is contained in:
Kargatum
2020-11-11 22:09:02 +07:00
committed by GitHub
parent a93565b6da
commit e27201cee2
921 changed files with 18238 additions and 33164 deletions

View File

@@ -7,6 +7,10 @@
#include "ace/OS_NS_dirent.h"
#include "ace/OS_NS_stdlib.h"
#if defined (ACE_HAS_ALLOC_HOOKS)
# include "ace/Malloc_Base.h"
#endif /* ACE_HAS_ALLOC_HOOKS */
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// Construction/Destruction
@@ -40,12 +44,24 @@ ACE_Dirent_Selector::close (void)
#if defined (ACE_LACKS_STRUCT_DIR)
// Only the lacking-struct-dir emulation allocates this. Native
// scandir includes d_name in the dirent struct itself.
#if defined (ACE_HAS_ALLOC_HOOKS)
ACE_Allocator::instance()->free (this->namelist_[n_]->d_name);
#else
ACE_OS::free (this->namelist_[n_]->d_name);
#endif /* ACE_HAS_ALLOC_HOOKS */
#endif
#if defined (ACE_HAS_ALLOC_HOOKS)
ACE_Allocator::instance()->free (this->namelist_[n_]);
#else
ACE_OS::free (this->namelist_[n_]);
#endif /* ACE_HAS_ALLOC_HOOKS */
}
#if defined (ACE_HAS_ALLOC_HOOKS)
ACE_Allocator::instance()->free (this->namelist_);
#else
ACE_OS::free (this->namelist_);
#endif /* ACE_HAS_ALLOC_HOOKS */
this->namelist_ = 0;
return 0;
}