diff --git a/src/pkg/runtime/chan.c b/src/pkg/runtime/chan.c index 8c45b076d0c..2fab9e2161e 100644 --- a/src/pkg/runtime/chan.c +++ b/src/pkg/runtime/chan.c @@ -121,7 +121,6 @@ runtime·makechan_c(Type *elem, int64 hint) by = runtime·mal(n + hint*elem->size); c = (Hchan*)by; - by += n; runtime·addfinalizer(c, destroychan, 0); c->elemsize = elem->size;