Fixed the fix of the fix
This commit is contained in:
parent
118d2d7443
commit
9581b8cf85
1 changed files with 2 additions and 2 deletions
|
@ -846,7 +846,7 @@ ggml_backend_buffer_t ggml_backend_alloc_ctx_tensors_from_buft(struct ggml_conte
|
||||||
for (size_t i = 0; i < n_buffers; i++) {
|
for (size_t i = 0; i < n_buffers; i++) {
|
||||||
ggml_backend_buffer_free(buffers[i]);
|
ggml_backend_buffer_free(buffers[i]);
|
||||||
}
|
}
|
||||||
free(*buffers);
|
free(buffers);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -883,7 +883,7 @@ ggml_backend_buffer_t ggml_backend_alloc_ctx_tensors_from_buft(struct ggml_conte
|
||||||
} else {
|
} else {
|
||||||
buffer = ggml_backend_multi_buffer_alloc_buffer(buffers, n_buffers);
|
buffer = ggml_backend_multi_buffer_alloc_buffer(buffers, n_buffers);
|
||||||
}
|
}
|
||||||
free(*buffers);
|
free(buffers);
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue