diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-11-16 20:31:58 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-11-16 20:31:58 +0000 |
| commit | b9df5231cae6b5c6cc445bf0e041fe98f6602303 (patch) | |
| tree | 65eeb4add32e588f36f28e2a0bb819c17a67ff70 /sys/kern/kern_exit.c | |
| parent | cf9e5270089595eac4ec8c58dd4980841e00aecf (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_exit.c')
| -rw-r--r-- | sys/kern/kern_exit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 6fe2171adb34..6c00e43c5183 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -494,6 +494,12 @@ loop: } /* + * Remove unused arguments + */ + if (p->p_args && --p->p_args->ar_ref == 0) + FREE(p->p_args, M_PARGS); + + /* * Finally finished with old proc entry. * Unlink it from its process group and free it. */ |
