diff options
author | Bruce Evans <bde@FreeBSD.org> | 1994-10-30 19:43:49 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1994-10-30 19:43:49 +0000 |
commit | a6a21d9edf6850a23ef077601cd21c2e105c635f (patch) | |
tree | 08bd5f8b78129e5367bc16aa7ce4f1ca7f791620 | |
parent | c20c8046d5db85b0be01f57fac8f7bed91b4b6d2 (diff) |
Notes
-rw-r--r-- | sys/kern/subr_clist.c | 4 | ||||
-rw-r--r-- | sys/kern/tty_subr.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/kern/subr_clist.c b/sys/kern/subr_clist.c index 26f42fbccdbef..46a8f1efbd139 100644 --- a/sys/kern/subr_clist.c +++ b/sys/kern/subr_clist.c @@ -6,7 +6,7 @@ * of this software, nor does the author assume any responsibility * for damages incurred with its use. * - * $Id: tty_subr.c,v 1.6 1994/09/13 16:02:20 davidg Exp $ + * $Id: tty_subr.c,v 1.7 1994/09/25 19:33:50 phk Exp $ */ /* @@ -118,6 +118,8 @@ cblock_free_cblocks(number) for (i = 0; i < number; ++i) { tmp = cblock_alloc(); + if (tmp == NULL) + return; free(tmp, M_TTYS); } } diff --git a/sys/kern/tty_subr.c b/sys/kern/tty_subr.c index 26f42fbccdbef..46a8f1efbd139 100644 --- a/sys/kern/tty_subr.c +++ b/sys/kern/tty_subr.c @@ -6,7 +6,7 @@ * of this software, nor does the author assume any responsibility * for damages incurred with its use. * - * $Id: tty_subr.c,v 1.6 1994/09/13 16:02:20 davidg Exp $ + * $Id: tty_subr.c,v 1.7 1994/09/25 19:33:50 phk Exp $ */ /* @@ -118,6 +118,8 @@ cblock_free_cblocks(number) for (i = 0; i < number; ++i) { tmp = cblock_alloc(); + if (tmp == NULL) + return; free(tmp, M_TTYS); } } |