From 35a2ee914308c85ab5cb576467381443ad23f0ac Mon Sep 17 00:00:00 2001 From: Michael Klimenko Date: Sat, 27 Jan 2024 15:25:55 +0100 Subject: Remove unused data and add fixes (#5154) * Remove unused data and add fixes * Add missing file * Address review comments * Replace the scope of vq allocation --- common/sampling.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'common') diff --git a/common/sampling.cpp b/common/sampling.cpp index efd7eab6..e8675a8c 100644 --- a/common/sampling.cpp +++ b/common/sampling.cpp @@ -13,6 +13,7 @@ struct llama_sampling_context * llama_sampling_init(const struct llama_sampling_ // will be empty (default) if there are parse errors if (result->parsed_grammar.rules.empty()) { fprintf(stderr, "%s: failed to parse grammar\n", __func__); + delete result; return nullptr; } -- cgit v1.2.3