aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/alloc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/alloc')
-rw-r--r--src/lib/alloc/secmem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/alloc/secmem.h b/src/lib/alloc/secmem.h
index 2f4d65f33..706ea037f 100644
--- a/src/lib/alloc/secmem.h
+++ b/src/lib/alloc/secmem.h
@@ -57,7 +57,7 @@ class secure_allocator
void deallocate(pointer p, size_type n)
{
- clear_mem(p, n);
+ zero_mem(p, n);
#if defined(BOTAN_HAS_LOCKING_ALLOCATOR)
if(mlock_allocator::instance().deallocate(p, n, sizeof(T)))