SAST. Potential file descriptor leak
Open
- Dominant language
- Go
- Stars
- 19.4k
- Forks
- 2.5k
- Avg merge
- 9h 7m
- Merged PRs (30d)
- 1
Description
The static analyzer has identified a potential resource leak.
In the udpStatsFromProc function [on line 696](https://github.com/google/cadvisor/blob/master/container/libcontainer/handler.go#L696 ) in container/libcontainer/handler.go the udpStatsFile file descriptor opens, if the function exits on [line 703](https://github.com/google/cadvisor/blob/master/container/libcontainer/handler.go#L703 ) the file descriptor does not close. Could you tell me, please, is this really TP?
Contributor guide
Assessment
This issue has not been assessed yet.