diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2020-08-13 10:24:45 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2020-08-13 10:24:45 +0000 |
commit | b38ad2683abb11bc129943ccdd2ec56b51a8cff9 (patch) | |
tree | a1dd65b5baf4790690fd5fcb18c47362a326af83 /sys/kern/vfs_lookup.c | |
parent | cf518995644bbb3b67d876eaffc9f5856228a7cf (diff) | |
download | src-b38ad2683abb11bc129943ccdd2ec56b51a8cff9.tar.gz src-b38ad2683abb11bc129943ccdd2ec56b51a8cff9.zip |
Notes
Diffstat (limited to 'sys/kern/vfs_lookup.c')
-rw-r--r-- | sys/kern/vfs_lookup.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index a392c128fd01..43b36dccb028 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -431,6 +431,7 @@ namei_setup(struct nameidata *ndp, struct vnode **dpp, struct pwd **pwdp) if (error != 0) { if (*dpp != NULL) vrele(*dpp); + pwd_drop(pwd); return (error); } MPASS((ndp->ni_lcf & (NI_LCF_BENEATH_ABS | NI_LCF_LATCH)) != |