]> Cypherpunks repositories - gostls13.git/commit
runtime: fix another memory leak
authorRuss Cox <rsc@golang.org>
Sun, 19 Feb 2012 16:05:19 +0000 (11:05 -0500)
committerRuss Cox <rsc@golang.org>
Sun, 19 Feb 2012 16:05:19 +0000 (11:05 -0500)
commit8a4c2b3cc45edb4a263c775683947709e9b4c50d
tree3525b61e1bdabca81b74f30f0b3588965029fdc5
parent4e3f8e915fadd17b7caffaae273eddd3528ac080
runtime: fix another memory leak

morebuf holds a pc/sp from the last stack split or
reflect.call or panic/recover.  If the pc is a closure,
the reference will keep it from being collected.

moreargp holds a pointer to the arguments from the
last stack split or reflect.call or panic/recover.
Normally it is a stack pointer and thus not of interest,
but in the case of reflect.call it is an allocated argument
list and holds up the arguments to the call.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5674109
src/pkg/runtime/proc.c