We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 488dd3f commit be17532Copy full SHA for be17532
1 file changed
cpp/ql/src/Critical/MemoryMayNotBeFreed.ql
@@ -63,7 +63,7 @@ predicate verifiedRealloc(FunctionCall reallocCall, Variable v, ControlFlowNode
63
node.(AnalysedExpr).getNonNullSuccessor(newV) = verified and
64
// note: this case uses naive flow logic (getAnAssignedValue).
65
// special case: if the result of the 'realloc' is assigned to the
66
- // same variable, we don't descriminate properly between the old
+ // same variable, we don't discriminate properly between the old
67
// and the new allocation; better to not consider this a free at
68
// all in that case.
69
newV != v
0 commit comments