commit | 6e8cc8fd873343341e722ca74ecdcb3eb6d6e34c | [log] [tgz] |
---|---|---|
author | Erick Tryzelaar <etryzelaar@google.com> | Fri Sep 28 10:59:14 2018 -0700 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Tue Oct 02 17:59:13 2018 +0000 |
tree | 7f457be271e5fbd7d33112f6e7015c8eec7d0b55 | |
parent | 19d1c1badb8c5a2456c109abc79b0e1e73585d38 [diff] |
[fdio] Fix leaking handle if opening a non-existing file This fixes a bug where if we received an error when opening a file, we would leak a handle. This makes sure that the handle is closed in this circumstance. In addition, this fixes a similar bug if we receive an error when cloning a fdio node. PKG-250 #done TEST: Manually confirmed handles are no longer leaking opening a non-existing file. Change-Id: I77d4611b7e2a6f390d5653d32e5e794aef759360
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install or load doc/install.html in your web browser for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source or load doc/install-source.html in your web browser for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.