use mmap to allocate memory for generated code to be able to set PROT_EXEC
This commit is contained in:
1 parent
87ce505868
commit
39f2e449b6
3 files changed
+49
-50
No files matched your search
@@ -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 ) );
|
||||
|
||||
Reference in new issue
Block a user