Use platform-specific implementations of securePtrOverwriteAndFree

This commit is contained in:
2026-02-07 23:29:11 -05:00
parent bfc6d97773
commit 904c084711
4 changed files with 30 additions and 8 deletions
-6
View File
@@ -97,10 +97,4 @@ func safeBoolDeref(b *bool) bool {
return *b
}
// securePtrOverwrite securely overwrites the memory at the input pointer and then frees it.
func securePtrOverwriteAndFree(input unsafe.Pointer, length C.int) {
C.explicit_bzero(input, C.size_t(length))
C.free(input)
}
func main() {}