CodeQL library for C/C++
Search

Predicate allocExprOrIndirect

Holds if alloc is a use of malloc or new, or a function wrapping one of those. kind is a string describing the type of the allocation.

Import path

import Critical.NewDelete
predicate allocExprOrIndirect(Expr alloc, string kind)