summaryrefslogtreecommitdiff
path: root/examples/gguf
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gguf')
-rw-r--r--examples/gguf/gguf.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/gguf/gguf.cpp b/examples/gguf/gguf.cpp
index e67be4fb..5444503a 100644
--- a/examples/gguf/gguf.cpp
+++ b/examples/gguf/gguf.cpp
@@ -211,6 +211,7 @@ static bool gguf_ex_read_1(const std::string & fname) {
for (int j = 0; j < ggml_nelements(cur); ++j) {
if (data[j] != 100 + i) {
fprintf(stderr, "%s: tensor[%d]: data[%d] = %f\n", __func__, i, j, data[j]);
+ gguf_free(ctx);
return false;
}
}