From 383b2d881a5e52c5d92ff3af6aa336a6e80bd5e6 Mon Sep 17 00:00:00 2001 From: Pierrick HYMBERT Date: Wed, 3 Apr 2024 18:45:01 +0200 Subject: [PATCH] TEST tmp modif --- ggml.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ggml.c b/ggml.c index c9b0a6a0ef776..8cbb8daa1be7c 100644 --- a/ggml.c +++ b/ggml.c @@ -244,6 +244,7 @@ inline static void * ggml_malloc(size_t size) { GGML_PRINT("WARNING: Behavior may be unexpected when allocating 0 bytes for ggml_malloc!\n"); return NULL; } + void * result = malloc(size); if (result == NULL) { GGML_PRINT("%s: failed to allocate %6.2f MB\n", __func__, size/(1024.0*1024.0));