]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/kern_exec.c
xnu-201.19.tar.gz
[apple/xnu.git] / bsd / kern / kern_exec.c
index 7dd27b97cbecc7d4c71917223286b8b601abda24..88348db3ff6a14cfe7b34cbdd60984a0cc954502 100644 (file)
@@ -530,9 +530,10 @@ again:
                 * root set it.
                 */
                if (p->p_tracep && !(p->p_traceflag & KTRFAC_ROOT)) {
-                       vrele(p->p_tracep);
+                       struct vnode *tvp = p->p_tracep;
                        p->p_tracep = NULL;
                        p->p_traceflag = 0;
+                       vrele(tvp);
                }
 #endif
                if (origvattr.va_mode & VSUID)