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