aboutsummaryrefslogtreecommitdiffstats
path: root/tun/wintun/memmod/memmod_windows_386.go
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2021-09-23 12:05:13 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-09-23 09:53:49 -0600
commiteae5e0f3a3a5b08a843756093dc3bfd0f4068108 (patch)
treeaa4fc9d7f91740685eb8b99e4a942ba75e407ca0 /tun/wintun/memmod/memmod_windows_386.go
parentglobal: add new go 1.17 build comments (diff)
downloadwireguard-go-eae5e0f3a3a5b08a843756093dc3bfd0f4068108.tar.xz
wireguard-go-eae5e0f3a3a5b08a843756093dc3bfd0f4068108.zip
tun: avoid leaking sock fd in CreateTUN error cases
At these points, the socket file descriptor is not yet wrapped in an *os.File, so it needs to be closed explicitly on error. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun/wintun/memmod/memmod_windows_386.go')
0 files changed, 0 insertions, 0 deletions