7 lines
166 B
Plaintext
7 lines
166 B
Plaintext
extern kernel32 {
|
|
VirtualFree(address *any, size uint, type uint32) -> bool
|
|
}
|
|
|
|
free(address []any) {
|
|
kernel32.VirtualFree(address-8, len(address)+8, mem.decommit)
|
|
} |