Josh Yan 9 hónapja
szülő
commit
657a1102fc
1 módosított fájl, 1 hozzáadás és 1 törlés
  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