]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove wrong assertion
authorPhilipp Stephani <phst@google.com>
Tue, 25 Oct 2016 21:41:20 +0000 (23:41 +0200)
committerPhilipp Stephani <phst@google.com>
Wed, 26 Oct 2016 21:31:42 +0000 (23:31 +0200)
It’s totally fine to free a channel that still buffers something.

src/alloc.c

index 10b6c20e3e44da4810f59ff4fb0d185a7e5aa5c2..e999d22fc07dd5cb108ed781f50a953404bf6200 100644 (file)
@@ -6947,7 +6947,6 @@ sweep_misc (void)
                 {
                   Channel *channel = mblk->markers[i].m.u_channel.channel;
                   eassert (channel != NULL);
-                  eassert (channel->nbuf == 0);
                   eassert (channel->asend.n == 0);
                   eassert (channel->arecv.n == 0);
                   chanfree (channel);