瀏覽代碼

lint complained

Josh Yan 9 月之前
父節點
當前提交
657a1102fc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      llm/llm.go

+ 1 - 1
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