The branch main has been updated by kevans:

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

commit b9746f6185c708ebadc9a8b1e640c1deab52b161
Author:     Kyle Evans <kev...@freebsd.org>
AuthorDate: 2025-09-04 02:08:52 +0000
Commit:     Kyle Evans <kev...@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);
        }
 

Reply via email to