diff --git a/llama-util.h b/llama-util.h index 195cb46ea..4f8a4296a 100644 --- a/llama-util.h +++ b/llama-util.h @@ -410,7 +410,7 @@ struct llama_buffer { int result = posix_memalign((void **) &addr, getpagesize(), len); if (result == 0) { memset(addr, 0, len); - } + } else { addr = NULL; }