Index: VirtualBox-7.0.8/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c =================================================================== --- VirtualBox-7.0.8.orig/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c +++ VirtualBox-7.0.8/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c @@ -45,7 +45,7 @@ #include #include #include "r0drv/alloc-r0drv.h" - +#include #include "internal/initterm.h" @@ -78,11 +78,12 @@ DECLHIDDEN(int) rtR0MemAllocEx(size_t cb && !(fFlags & RTMEMHDR_FLAG_ANY_CTX) )) { fFlags &= ~RTMEMHDR_FLAG_KMALLOC; - pHdr = vmalloc(cb + sizeof(*pHdr)); - } + pHdr = vmalloc(cb + sizeof(*pHdr)); + } + kmemleak_not_leak(pHdr); } - else - pHdr = vmalloc(cb + sizeof(*pHdr)); + else + pHdr = vmalloc(cb + sizeof(*pHdr)); if (RT_LIKELY(pHdr)) { /*