Skip to content

Commit d7e8ea7

Browse files
authored
Merge pull request #2641 from marcrepo/master
Documentation update for Issue #2623
2 parents 386e8e8 + dbe51e0 commit d7e8ea7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: cpp/ql/src/Critical/DescriptorNeverClosed.qhelp

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
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.
1010
Leaving 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>

Diff for: cpp/ql/src/Critical/DescriptorNeverClosed.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

0 commit comments

Comments
 (0)