]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: avoid leak of dottype expression on double assignment form
authorTal Shprecher <tshprecher@gmail.com>
Wed, 13 Jul 2016 18:29:39 +0000 (12:29 -0600)
committerDavid Chase <drchase@google.com>
Mon, 10 Oct 2016 12:09:16 +0000 (12:09 +0000)
commit672e57944458fc3c5f5ee1dd11d4f32d1aeaebe1
tree39b6ecaa4ebe6987a89beddf7e08c0cc74dbdab3
parent795289b114e4dd4f69eaa7f74cb9eb7b6f963fff
cmd/compile: avoid leak of dottype expression on double assignment form

This is a followup to issue #13805. That change avoid leaks for types that
don't have any pointers for the single assignment form of a dottype expression.
This does the same for the double assignment form.

Fixes #15796

Change-Id: I27474cade0ff1f3025cb6392f47b87b33542bc0f
Reviewed-on: https://go-review.googlesource.com/24906
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/esc.go
test/escape_iface.go