git: nfs: Fix a memory leak in the unused nfsrv_rcv()

Aaron LI aly at crater.dragonflybsd.org
Sat Nov 4 20:33:02 PDT 2023


commit 04e1c8d19858a7fcc0b24a721bc40752adaf3e9f
Author: Aaron LI <aly at aaronly.me>
Date:   Wed Nov 1 12:54:00 2023 +0800

    nfs: Fix a memory leak in the unused nfsrv_rcv()
    
    Although nfsrv_rcv() is unused (disabled in nfsrv_rcv_upcall()), it was
    failing to free the obtained socket name 'nam'.  Since 'nam' is actually
    unused in that code path, so fix the memory leak by passing it as NULL.

Summary of changes:
 sys/vfs/nfs/nfs_socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/04e1c8d19858a7fcc0b24a721bc40752adaf3e9f


-- 
DragonFly BSD source repository


More information about the Commits mailing list