Skip to content

Commit

Permalink
key design comment for free API
Browse files Browse the repository at this point in the history
  • Loading branch information
smithAchang committed Sep 5, 2023
1 parent ac87bd4 commit b71f82d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ACE/ace/Malloc_T.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ ACE_Cascaded_Dynamic_Cached_Allocator<ACE_LOCK>::free (void * ptr)
{
ACE_MT (ACE_GUARD (ACE_LOCK, ace_mon, this->mutex_));

// Use first allocator as a free chunk manager for all allocators when chunk freed.
if (ptr != nullptr)
hierarchy_[0]->free(ptr);
}
Expand Down

0 comments on commit b71f82d

Please sign in to comment.