From 95d2328a8c92245c5b71533e387c4e6273bf8b21 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Sat, 12 Apr 2014 17:18:08 +0400 Subject: [PATCH] Removed debug memset() in pool allocator --- libuavcan/include/uavcan/dynamic_memory.hpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/libuavcan/include/uavcan/dynamic_memory.hpp b/libuavcan/include/uavcan/dynamic_memory.hpp index 28efa1f715..5203bc33ef 100644 --- a/libuavcan/include/uavcan/dynamic_memory.hpp +++ b/libuavcan/include/uavcan/dynamic_memory.hpp @@ -257,9 +257,6 @@ void PoolAllocator::deallocate(const void* ptr) return; } Node* p = static_cast(const_cast(ptr)); -#if DEBUG || UAVCAN_DEBUG - std::memset(p, 0, sizeof(Node)); -#endif p->next = free_list_; free_list_ = p; }