From e7a84c9e84413db08299bd00315b477309e45ef7 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 12 Dec 2014 08:52:05 -0800 Subject: [PATCH] We always need to allocate aligned memory --- src/libsodium/sodium/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsodium/sodium/utils.c b/src/libsodium/sodium/utils.c index 399f519e..4c6a732b 100644 --- a/src/libsodium/sodium/utils.c +++ b/src/libsodium/sodium/utils.c @@ -315,7 +315,7 @@ _alloc_aligned(const size_t size) #elif defined(_WIN32) ptr = VirtualAlloc(NULL, size, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE); #elif !defined(HAVE_ALIGNED_MALLOC) - ptr = malloc(size); +# error Unsupported configuration #else # error Bug #endif