File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
cpp/common/src/codingstandards/cpp/resources Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import cpp
22import semmle.code.cpp.dataflow.DataFlow
3- import semmle.code.cpp.valuenumbering.GlobalValueNumbering
3+ import semmle.code.cpp.valuenumbering.HashCons
44import semmle.code.cpp.controlflow.Dominance
55import codeql.util.Boolean
66
@@ -40,13 +40,14 @@ signature module ResourceLeakConfigSig {
4040
4141 predicate isFree ( ControlFlowNode node , DataFlow:: Node resource ) ;
4242
43+ bindingset [ node]
4344 default DataFlow:: Node getAnAlias ( DataFlow:: Node node ) {
4445 DataFlow:: localFlow ( node , result )
4546 or
4647 exists ( Expr current , Expr after |
4748 current in [ node .asExpr ( ) , node .asDefiningArgument ( ) ] and
4849 after in [ result .asExpr ( ) , result .asDefiningArgument ( ) ] and
49- globalValueNumber ( current ) = globalValueNumber ( after ) and
50+ hashCons ( current ) = hashCons ( after ) and
5051 strictlyDominates ( current , after )
5152 )
5253 }
You can’t perform that action at this time.
0 commit comments