Memory leak #18085
Labels
area/performance
backport/v3.5
priority/important-longterm
Important over the long term, but may not be staffed and/or may need multiple releases to complete.
type/bug
Bug report criteria
What happened?
file is being opened here
etcd/client/v3/snapshot/v3_snapshot.go
Line 63 in 9914047
but being closed only here
etcd/client/v3/snapshot/v3_snapshot.go
Line 87 in 9914047
Between these lines errors can be occured and file won't be closed
What did you expect to happen?
There should close function invocation via defer
How can we reproduce it (as minimally and precisely as possible)?
Check code
Anything else we need to know?
Etcd version (please run commands below)
latest
Etcd configuration (command line flags or environment variables)
Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)
Relevant log output
The text was updated successfully, but these errors were encountered: