VirtualBox

Ignore:
Timestamp:
Dec 29, 2022 10:47:38 PM (2 years ago)
Author:
vboxsync
Message:

IPRT/alloc-r0drv-freebsd.c: Missing exec alloc cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/freebsd/alloc-r0drv-freebsd.c

    r97911 r97912  
    109109{
    110110    pHdr->u32Magic += 1;
    111 
    112 #ifdef RT_ARCH_AMD64
    113     if (pHdr->fFlags & RTMEMHDR_FLAG_EXEC)
    114 # ifdef USE_KMEM_ALLOC_PROT
    115         kmem_free(kernel_map, (vm_offset_t)pHdr, pHdr->cb);
    116 # else
    117         vm_map_remove(kernel_map, (vm_offset_t)pHdr, ((vm_offset_t)pHdr) + pHdr->cb);
    118 # endif
    119     else
    120 #endif
    121         free(pHdr, M_IPRTHEAP);
     111    free(pHdr, M_IPRTHEAP);
    122112}
    123113
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette