From f7ffab870b6992d14173b0439b803da04ba1ab12 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Mon, 26 Feb 2024 23:03:10 +0100 Subject: [PATCH] fix missing malloc --- utest/test_extensions/test_isamin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utest/test_extensions/test_isamin.c b/utest/test_extensions/test_isamin.c index 673e656df1..d93813e6fb 100644 --- a/utest/test_extensions/test_isamin.c +++ b/utest/test_extensions/test_isamin.c @@ -402,7 +402,7 @@ CTEST(isamin, min_idx_in_vec_tail){ CTEST(isamin, min_idx_in_vec_tail_inc_1){ blasint i; blasint N = ELEMENTS, inc = 1; - float *x = (float*) (ELEMENTS * inc * sizeof(float)); + float *x = (float*) malloc(ELEMENTS * inc * sizeof(float)); for (i = 0; i < N * inc; i ++) { x[i] = i + 1000; }