From 8060deb40a14c63514bf2282fd1afe79aae5f656 Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Tue, 11 Sep 2018 09:26:12 -0600 Subject: [PATCH] pass arguments through to Nucleus memory functions in 1.2 build --- wolfssl/wolfcrypt/settings.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index d3694446c..b65e4dadc 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -502,9 +502,9 @@ int type); extern void nucleus_free(void* ptr, void* heap, int type); - #define XMALLOC(s, h, type) nucleus_malloc - #define XREALLOC(p, n, h, t) nucleus_realloc - #define XFREE(p, h, type) nucleus_free + #define XMALLOC(s, h, type) nucleus_malloc((s), (h), (type)) + #define XREALLOC(p, n, h, t) nucleus_realloc((p), (n), (h), (t)) + #define XFREE(p, h, type) nucleus_free((p), (h), (type)) #endif #endif