Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4887 from davecheney/fixedbug/14904
apiserver/client: work around compiler bug with named return values Upstream golang/go#14904 Returning a complex variable by value with a mix of named and implicit returns was throwing off the compiler. This caused the memory occupied by the return value to be considered dead before the end of the function, leading to the gc freeing that memory prematurely. The bug is not believed to not affect any shipping Go 1.6 compiler, but it seems prudent to work around the compiler issue in our code. (Review request: http://reviews.vapour.ws/r/4336/)
- Loading branch information