aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-03 11:40:04 -0400
committerJack Lloyd <[email protected]>2016-11-03 11:40:04 -0400
commitc778c9e3dd5353dc7c6326b842da3faf60cdc735 (patch)
treea04515671d6e3a22a9be3ff8ef5812e9d27981ee /src
parentd5f8d0326585d5e3ca3807ded488e440dfe56e25 (diff)
Compile fix
Diffstat (limited to 'src')
-rw-r--r--src/lib/utils/locking_allocator/locking_allocator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/locking_allocator/locking_allocator.cpp b/src/lib/utils/locking_allocator/locking_allocator.cpp
index 8b15b417e..5c87e006d 100644
--- a/src/lib/utils/locking_allocator/locking_allocator.cpp
+++ b/src/lib/utils/locking_allocator/locking_allocator.cpp
@@ -140,7 +140,7 @@ bool mlock_allocator::deallocate(void* p, size_t num_elems, size_t elem_size)
if(!ptr_in_pool(m_pool, m_poolsize, p, n))
return false;
- std::memset(ptr, 0, n);
+ std::memset(p, 0, n);
lock_guard_type<mutex_type> lock(m_mutex);