mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
9 lines
237 B
Plaintext
9 lines
237 B
Plaintext
import cpp
|
|
|
|
from FunctionCall alloc, FunctionCall free, LocalScopeVariable v
|
|
where allocationCall(alloc)
|
|
and alloc = v.getAnAssignedValue()
|
|
and freeCall(free, v.getAnAccess())
|
|
and alloc.getASuccessor+() = free
|
|
select alloc, free
|