diff options
author | Rick Macklem <rmacklem@FreeBSD.org> | 2025-08-15 19:11:08 +0000 |
---|---|---|
committer | Rick Macklem <rmacklem@FreeBSD.org> | 2025-08-15 19:11:08 +0000 |
commit | 9cd3860c10b6afaaaeb118dafc166ab168bc9083 (patch) | |
tree | f95c01d2c440024d1853354d490606d82ed077ca /usr.sbin/pmc | |
parent | 06410c1b51637e5e1f392d553b5008948af58014 (diff) |
Commit 5b5b7e2ca2fa changed namei()s behaviour such that it
does not free the NAMEI buffer unless returning an error.
The nfsd was not fixed for this. Fortunately, the only
leak would be one NAMEI buffer each time mountd(8) reloads
the exports. (There were also leaks in the pNFS server
configuration, but almost no one uses it.)
This patch fixes the leaks by adding NDFREE_PNBUF() macros
in the appropriate places.
MFC after: 2 weeks
Discussed with: kib
Fixes: 5b5b7e2ca2fa ("vfs: always retain path buffer after lookup")
Diffstat (limited to 'usr.sbin/pmc')
0 files changed, 0 insertions, 0 deletions