summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_jail.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c
index 869551f..b9efe24 100644
--- a/sys/kern/kern_jail.c
+++ b/sys/kern/kern_jail.c
@@ -209,6 +209,8 @@ e_dropprref:
}
sx_sunlock(&allprison_lock);
e_dropvnref:
+ if (pr->pr_slots != NULL)
+ FREE(pr->pr_slots, M_PRISON);
vfslocked = VFS_LOCK_GIANT(pr->pr_root->v_mount);
vrele(pr->pr_root);
VFS_UNLOCK_GIANT(vfslocked);
@@ -339,6 +341,8 @@ prison_complete(void *context, int pending)
psrv->ps_destroy(psrv, pr);
}
sx_sunlock(&allprison_lock);
+ if (pr->pr_slots != NULL)
+ FREE(pr->pr_slots, M_PRISON);
vfslocked = VFS_LOCK_GIANT(pr->pr_root->v_mount);
vrele(pr->pr_root);
OpenPOWER on IntegriCloud