aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/SecureMemoryAllocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/function/SecureMemoryAllocator.h')
-rw-r--r--src/core/function/SecureMemoryAllocator.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/function/SecureMemoryAllocator.h b/src/core/function/SecureMemoryAllocator.h
index 1475e258..a0905ba7 100644
--- a/src/core/function/SecureMemoryAllocator.h
+++ b/src/core/function/SecureMemoryAllocator.h
@@ -32,7 +32,7 @@
namespace GpgFrontend {
-class GPGFRONTEND_CORE_EXPORT SecurityMemoryAllocator {
+class GPGFRONTEND_CORE_EXPORT SecureMemoryAllocator {
public:
static auto Allocate(std::size_t) -> void *;
@@ -45,9 +45,10 @@ template <typename T>
struct SecureObjectDeleter {
void operator()(T *ptr) {
if (ptr) {
- SPDLOG_TRACE("secure object deleter trys to free object, obj: {}", static_cast<void *>(ptr));
+ SPDLOG_TRACE("secure object deleter trys to free object, obj: {}",
+ static_cast<void *>(ptr));
ptr->~T();
- SecurityMemoryAllocator::Deallocate(ptr);
+ SecureMemoryAllocator::Deallocate(ptr);
}
}
};