• Russ Cox's avatar
    runtime: fix another memory leak · 8a4c2b3c
    Russ Cox authored
    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
    8a4c2b3c
proc.c 43.2 KB