git: nvmm(4): Fix memory leak on machine destruction

Aaron LI aly at crater.dragonflybsd.org
Tue Sep 1 06:09:03 PDT 2026


commit d9a8fdad9a31f39c726187948e23e80a1262c6b6
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Aug 30 23:22:13 2026 +0800

    nvmm(4): Fix memory leak on machine destruction
    
    The comm vmobj was not being freed on machine destruction. Introduce
    a new nvmm_do_machine_destroy() helper, free the comm vmobj in it,
    and use it in nvmm_machine_destroy() and nvmm_kill_machines().
    
    Obtained-from: NVMM Reference Implementation

Summary of changes:
 sys/dev/virtual/nvmm/nvmm.c | 97 ++++++++++++++++++++-------------------------
 1 file changed, 44 insertions(+), 53 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d9a8fdad9a31f39c726187948e23e80a1262c6b6


-- 
DragonFly BSD source repository


More information about the Commits mailing list