ggml : fix gguf string leak when reading kv pairs fails
This commit is contained in:
parent
fc83a9e584
commit
5bd963e90b
1 changed files with 2 additions and 2 deletions
|
@ -22335,11 +22335,11 @@ struct gguf_context * gguf_init_from_file(const char * fname, struct gguf_init_p
|
||||||
default: GGML_ABORT("invalid type");
|
default: GGML_ABORT("invalid type");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ctx->header.n_kv++;
|
||||||
|
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx->header.n_kv++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue