Skip to content

Commit

Permalink
Fix bug during c.free
Browse files Browse the repository at this point in the history
  • Loading branch information
hairtail committed Mar 2, 2024
1 parent 54029ec commit 2d82f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/postrs/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2d82f4e

Please sign in to comment.