diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-11-24 03:22:42 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-11-24 03:22:42 +0000 |
commit | cc697ccf42180dc0809840c895ea73f608aada4e (patch) | |
tree | 06a2a81178046c6d0ad38db2f1e9e8ecbc646f5f /sys/kern | |
parent | 621f100c9936469c76b0f6c5930b14ccf6e20fb3 (diff) |
fix memory leak; hbriceno@lcs.mit.edu
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_proc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index 0e55acd5de9..8a550b58ac0 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_proc.c,v 1.2 1996/03/03 17:19:51 niklas Exp $ */ +/* $OpenBSD: kern_proc.c,v 1.3 1997/11/24 03:22:41 deraadt Exp $ */ /* $NetBSD: kern_proc.c,v 1.14 1996/02/09 18:59:41 christos Exp $ */ /* @@ -203,10 +203,10 @@ enterpgrp(p, pgid, mksess) if (p->p_pid != pgid) panic("enterpgrp: new pgrp and pid != pgid"); #endif - MALLOC(pgrp, struct pgrp *, sizeof(struct pgrp), M_PGRP, - M_WAITOK); if ((np = pfind(savepid)) == NULL || np != p) return (ESRCH); + MALLOC(pgrp, struct pgrp *, sizeof(struct pgrp), M_PGRP, + M_WAITOK); if (mksess) { register struct session *sess; |