Use platform-specific implementations of securePtrOverwriteAndFree

This commit is contained in:
RandyTheSilly committed 2026-02-07 23:29:11 -05:00
1 parent bfc6d97773
commit 904c084711
4 files changed
+30 -8

No files matched your search

-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() {}