File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 6
6
7
7
<overview >
8
8
<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.
10
10
Leaving descriptors open will cause a resource leak that will persist even after the program terminates.
11
11
</p >
12
12
13
13
<include src =" aliasAnalysisWarning.qhelp" />
14
14
</overview >
15
15
16
16
<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 >
18
18
</recommendation >
19
19
20
20
<example >
Original file line number Diff line number Diff line change 1
1
/**
2
2
* @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.
4
4
* @kind problem
5
5
* @id cpp/descriptor-never-closed
6
6
* @problem.severity warning
You can’t perform that action at this time.
0 commit comments