]> Cypherpunks repositories - gostls13.git/commit
cmd/6c, cmd/8c: fix stack allocated Biobuf leaking at exit
authorDave Cheney <dave@cheney.net>
Wed, 20 Mar 2013 12:42:00 +0000 (23:42 +1100)
committerDave Cheney <dave@cheney.net>
Wed, 20 Mar 2013 12:42:00 +0000 (23:42 +1100)
commitf701e1c32043116448e7227ee598b21e00ce42c7
tree76148f461147c02532aaafea70bd4f80bfa0c2bd
parentb35019fe9ad730216bacc665fa8144c49be695ad
cmd/6c, cmd/8c: fix stack allocated Biobuf leaking at exit

Fixes #5085.

{6,8}c/swt.c allocates a third Biobuf in automatic memory which is not terminated at the end of the function. This causes the buffer to be 'in use' when the batexit handler fires, confusing valgrind.

Huge thanks to DMorsing for the diagnosis.

R=golang-dev, daniel.morsing, rsc
CC=golang-dev
https://golang.org/cl/7844044
src/cmd/6c/swt.c
src/cmd/8c/swt.c