From 2d82f4e2170d230fc8e2374aa4668d877bc6c246 Mon Sep 17 00:00:00 2001 From: lovedret Date: Sat, 2 Mar 2024 19:39:49 +0800 Subject: [PATCH] Fix bug during c.free --- internal/postrs/proof.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/postrs/proof.go b/internal/postrs/proof.go index 4fa1893c4..335c40580 100644 --- a/internal/postrs/proof.go +++ b/internal/postrs/proof.go @@ -71,7 +71,7 @@ func GenerateProof(dataDir string, postServer string, priority uint, challenge [ defer C.free(unsafe.Pointer(dataDirPtr)) postServerPtr := C.CString(postServer) - defer C.free(unsafe.Pointer(&postServerPtr)) + defer C.free(unsafe.Pointer(postServerPtr)) challengePtr := C.CBytes(challenge) defer C.free(challengePtr)