We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed39cf5 commit a118ee8Copy full SHA for a118ee8
1 file changed
workshop.md
@@ -161,8 +161,8 @@ Each step has a **Solution** that indicates one possible answer. Note that all q
161
```ql
162
predicate isSource(Expr arg) {
163
exists(FunctionCall call |
164
- arg = call.getArgument(0)) and
165
- call.hasGlobalOrStdName("free")
+ arg = call.getArgument(0) and
+ call.getTarget().hasGlobalOrStdName("free")
166
)
167
}
168
```
0 commit comments