Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Sep 2025 02:09:50 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b9746f6185c7 - main - pseudofs: don't leak the unrhdr on error
Message-ID:  <202509040209.58429oO9012321@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=b9746f6185c708ebadc9a8b1e640c1deab52b161

commit b9746f6185c708ebadc9a8b1e640c1deab52b161
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2025-09-04 02:08:52 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2025-09-04 02:08:52 +0000

    pseudofs: don't leak the unrhdr on error
    
    Reviewed by:    des, kib
    Differential Revision:  https://reviews.freebsd.org/D52155
---
 sys/fs/pseudofs/pseudofs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/fs/pseudofs/pseudofs.c b/sys/fs/pseudofs/pseudofs.c
index cc34489b92f2..efeeb57e6448 100644
--- a/sys/fs/pseudofs/pseudofs.c
+++ b/sys/fs/pseudofs/pseudofs.c
@@ -475,6 +475,7 @@ pfs_init(struct pfs_info *pi, struct vfsconf *vfc)
 	if (error) {
 		pfs_destroy(root);
 		pi->pi_root = NULL;
+		pfs_fileno_uninit(pi);
 		return (error);
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202509040209.58429oO9012321>