mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 23:33:34 +08:00
Removed debug memset() in pool allocator
This commit is contained in:
@@ -257,9 +257,6 @@ void PoolAllocator<PoolSize, BlockSize>::deallocate(const void* ptr)
|
||||
return;
|
||||
}
|
||||
Node* p = static_cast<Node*>(const_cast<void*>(ptr));
|
||||
#if DEBUG || UAVCAN_DEBUG
|
||||
std::memset(p, 0, sizeof(Node));
|
||||
#endif
|
||||
p->next = free_list_;
|
||||
free_list_ = p;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user