google / google/cadvisor

SAST. Potential file descriptor leak

Open
#3,751 0 comments 0 reactions 0 assignees View on GitHub
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?

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.