diff options
author | eivind <eivind@FreeBSD.org> | 1999-12-15 23:02:35 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1999-12-15 23:02:35 +0000 |
commit | 87724eb67358c0993676ad3dfe9091e192a653f4 (patch) | |
tree | c4e987197c199433e822f5a66858564ad5ccd4dd /sys/svr4 | |
parent | 529bc073c0dba1aaccc98818ee299b79a111afab (diff) | |
download | FreeBSD-src-87724eb67358c0993676ad3dfe9091e192a653f4.zip FreeBSD-src-87724eb67358c0993676ad3dfe9091e192a653f4.tar.gz |
Introduce NDFREE (and remove VOP_ABORTOP)
Diffstat (limited to 'sys/svr4')
-rw-r--r-- | sys/svr4/svr4_misc.c | 2 | ||||
-rw-r--r-- | sys/svr4/svr4_sysvec.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sys/svr4/svr4_misc.c b/sys/svr4/svr4_misc.c index 2abacee..6399049 100644 --- a/sys/svr4/svr4_misc.c +++ b/sys/svr4/svr4_misc.c @@ -1650,7 +1650,7 @@ svr4_sys_resolvepath(p, uap) *retval = strlen(nd.ni_cnd.cn_pnbuf) < SCARG(uap, bufsiz) ? strlen(nd.ni_cnd.cn_pnbuf) + 1 : SCARG(uap, bufsiz); bad: + NDFREE(&nd, NDF_ONLY_PNBUF); vput(nd.ni_vp); - zfree(namei_zone, nd.ni_cnd.cn_pnbuf); return error; } diff --git a/sys/svr4/svr4_sysvec.c b/sys/svr4/svr4_sysvec.c index f88b7d1..fbd4212 100644 --- a/sys/svr4/svr4_sysvec.c +++ b/sys/svr4/svr4_sysvec.c @@ -296,6 +296,7 @@ svr4_emul_find(p, sgp, prefix, path, pbuf, cflag) free(buf, M_TEMP); return error; } + NDFREE(&nd, NDF_ONLY_PNBUF); *cp = '/'; } @@ -306,6 +307,7 @@ svr4_emul_find(p, sgp, prefix, path, pbuf, cflag) free(buf, M_TEMP); return error; } + NDFREE(&nd, NDF_ONLY_PNBUF); /* * We now compare the vnode of the svr4_root to the one @@ -324,6 +326,7 @@ svr4_emul_find(p, sgp, prefix, path, pbuf, cflag) vrele(nd.ni_vp); return error; } + NDFREE(&ndroot, NDF_ONLY_PNBUF); if ((error = VOP_GETATTR(nd.ni_vp, &vat, p->p_ucred, p)) != 0) { goto done; |