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

Aaron LI aly at crater.dragonflybsd.org
Sat Nov 4 20:35:07 PDT 2023


commit 539006e0efeb0a76e1baf11cbf97277e30c87696
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/539006e0efeb0a76e1baf11cbf97277e30c87696


-- 
DragonFly BSD source repository


More information about the Commits mailing list