From 5bc0cd4c26779628f143ca8c129fbacc0baf531e Mon Sep 17 00:00:00 2001 From: Alexey Odinokov Date: Thu, 15 Aug 2024 18:48:23 -0500 Subject: [PATCH] allocating memory for result is minimum size (this is due to the specifics for ffi) --- examples/c_ffi_call/value_ffi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/c_ffi_call/value_ffi.c b/examples/c_ffi_call/value_ffi.c index 64aa438..df422f9 100644 --- a/examples/c_ffi_call/value_ffi.c +++ b/examples/c_ffi_call/value_ffi.c @@ -336,7 +336,7 @@ metac_value_t * metac_new_value_with_call_result(metac_value_t * p_param_storage } _check_(res_sz <= 0, NULL); - void * p_res_mem = calloc(1, res_sz); // make alloca maybe + void * p_res_mem = calloc(1, res_sz