use mmap to allocate memory for generated code to be able to set PROT_EXEC
This commit is contained in:
parent
87ce505868
commit
39f2e449b6
3 changed files with 49 additions and 50 deletions
|
@ -615,6 +615,9 @@ VM_Free
|
|||
*/
|
||||
void VM_Free( vm_t *vm ) {
|
||||
|
||||
if(vm->destroy)
|
||||
vm->destroy(vm);
|
||||
|
||||
if ( vm->dllHandle ) {
|
||||
Sys_UnloadDll( vm->dllHandle );
|
||||
Com_Memset( vm, 0, sizeof( *vm ) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue