CodeQL library for C/C++
codeql/cpp-all 0.12.10 (changelog, source)
Search

Predicate isMemoryManagementExpr

Is e some kind of allocation or deallocation (new, alloc, realloc, delete, free etc)?

Import path

import cpp
predicate isMemoryManagementExpr(Expr e)