File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 66
77<overview >
88<p >
9- This rule finds calls to <code >open</ code > or < code > socket</code > where there is no corresponding <code >close</code > call in the program analyzed.
9+ This rule finds calls to <code >socket</code > where there is no corresponding <code >close</code > call in the program analyzed.
1010Leaving descriptors open will cause a resource leak that will persist even after the program terminates.
1111</p >
1212
1313<include src =" aliasAnalysisWarning.qhelp" />
1414</overview >
1515
1616<recommendation >
17- <p >Ensure that all file or socket descriptors allocated by the program are freed before it terminates.</p >
17+ <p >Ensure that all socket descriptors allocated by the program are freed before it terminates.</p >
1818</recommendation >
1919
2020<example >
Original file line number Diff line number Diff line change 11/**
22 * @name Open descriptor never closed
3- * @description Functions that always return before closing the socket or file they opened leak resources.
3+ * @description Functions that always return before closing the socket they opened leak resources.
44 * @kind problem
55 * @id cpp/descriptor-never-closed
66 * @problem.severity warning
You can’t perform that action at this time.
0 commit comments