mirror of
https://github.com/rwinkhart/cmutton.git
synced 2026-08-28 04:46:46 -04:00
Use platform-specific implementations of securePtrOverwriteAndFree
This commit is contained in:
@@ -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() {}
|
||||
|
||||
Reference in New Issue
Block a user