Commit 9c3ecb36 authored by Dave Cheney's avatar Dave Cheney Committed by Russ Cox

runtime: fix set and not used in chan.c

R=rsc
CC=golang-dev
https://golang.org/cl/4416042
parent 2fca1a40
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment