vulkan : fix free of stack addr in llama_buffer

This commit is contained in:
Jared Van Bortel 2023-11-29 18:17:57 -05:00
parent f58f581ca8
commit 2d2c76acc4

View File

@ -765,8 +765,10 @@ struct llama_buffer {
~llama_buffer() {
if (data) {
#ifdef GGML_USE_KOMPUTE
if (memory.data) {
if (ggml_vk_has_device()) {
ggml_vk_free_memory(memory);
}
data = NULL;
return;
}