git: libnvmm: Fix a memory leak in nvmm_machine_create()

Aaron LI aly at crater.dragonflybsd.org
Tue Jul 20 16:30:28 PDT 2021


commit cb1211884e4d829911629864253a3179344887e3
Author: Aaron LI <aly at aaronly.me>
Date:   Wed Jun 30 21:57:02 2021 +0800

    libnvmm: Fix a memory leak in nvmm_machine_create()
    
    Also free the allocated 'pages' when ioctl(NVMM_IOC_MACHINE_CREATE)
    fails.

Summary of changes:
 lib/libnvmm/libnvmm.c | 1 +
 1 file changed, 1 insertion(+)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list