]> Cypherpunks repositories - gostls13.git/commit
runtime: clear f, arg to avoid leak in timerproc
authorRuss Cox <rsc@golang.org>
Tue, 18 Feb 2014 01:11:53 +0000 (20:11 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 18 Feb 2014 01:11:53 +0000 (20:11 -0500)
commitbe1c71ecb5b02220b282884317908b4da89ef37a
tree7d99dbc22bc0ae8006b34f10b5a89547de603cd2
parent5c604f844a058223e9b13d602e53e14d5f199ad6
runtime: clear f, arg to avoid leak in timerproc

I have seen this cause leaks where not all objects in a sync.Pool
would be reclaimed during the sync package tests.
I found it while debugging the '0 of 100 finalized' failure we are
seeing on arm, but it seems not to be the root cause for that one.

LGTM=dave, dvyukov
R=golang-codereviews, dave, dvyukov
CC=golang-codereviews
https://golang.org/cl/64920044
src/pkg/runtime/time.goc