From 657a1102fcbdb7d091442c70ac19373c5cd223e3 Mon Sep 17 00:00:00 2001 From: Josh Yan Date: Thu, 11 Jul 2024 09:26:17 -0700 Subject: [PATCH] lint complained --- llm/llm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llm/llm.go b/llm/llm.go index f84e4fd5e..d700a2cb6 100644 --- a/llm/llm.go +++ b/llm/llm.go @@ -43,7 +43,7 @@ func Quantize(infile, outfile string, ftype fileType, fn func(resp api.ProgressR // Initialize "global" to store progress store := C.malloc(C.sizeof_float) - defer C.free(unsafe.Pointer(store)) + defer C.free(store) // Initialize store value, e.g., setting initial progress to 0 *(*C.float)(store) = 0.0