From c2eb20ac8196226836709c3a8d71d7f67fd92c14 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Tue, 5 Mar 1996 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1996-03-05 --- port/alloc.c | 1 + port/qio.c | 1 + 2 files changed, 2 insertions(+) diff --git a/port/alloc.c b/port/alloc.c index 6e5020cff46bffe2d976b2a0100299393821edcf..90fbda9779724acc3c876baab1069f4b50415e20 100644 --- a/port/alloc.c +++ b/port/alloc.c @@ -264,6 +264,7 @@ mallocz(ulong size, int zero) return nil; good: + /* Allocate off this list */ ilock(&arena); bp = arena.btab[pow]; diff --git a/port/qio.c b/port/qio.c index 71650e8f5be66dbe2a3b588c566831e104bab9df..77aeb9727a8c7e64f0ae79e4d47caddd083fe1fe 100644 --- a/port/qio.c +++ b/port/qio.c @@ -517,6 +517,7 @@ qbwrite(Queue *q, Block *b) if(q->state & Qclosed){ iunlock(q); + freeb(b); error(Ehungup); }