aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/mem_ops.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-30 10:37:58 -0400
committerJack Lloyd <[email protected]>2017-09-30 10:37:58 -0400
commit39d4dfdba31c098f77cd4e079b0eea643142fb67 (patch)
tree2fa4e24cb9d8dbb2cee195a014f2fb0bfbb12dd2 /src/lib/utils/mem_ops.h
parenta791b99331a58452c290dd2bb24b2648d93274aa (diff)
Add annotation so GCC/Clang/MSVC know it is an allocation function.
Diffstat (limited to 'src/lib/utils/mem_ops.h')
-rw-r--r--src/lib/utils/mem_ops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/mem_ops.h b/src/lib/utils/mem_ops.h
index 4b03b23d2..3274bfaf6 100644
--- a/src/lib/utils/mem_ops.h
+++ b/src/lib/utils/mem_ops.h
@@ -22,7 +22,7 @@ namespace Botan {
* @param elem_size the size of each element
* @return pointer to allocated and zeroed memory, or throw std::bad_alloc on failure
*/
-BOTAN_PUBLIC_API(2,3) void* allocate_memory(size_t elems, size_t elem_size);
+BOTAN_PUBLIC_API(2,3) BOTAN_MALLOC_FN void* allocate_memory(size_t elems, size_t elem_size);
/**
* Free a pointer returned by allocate_memory