Lines Matching full:malloc
1 //=== MallocChecker.cpp - A malloc/free checker -------------------*- C++ -*--//
10 // This file defines malloc/free checker, which checks for potential memory
319 II_malloc = &Ctx.Idents.get("malloc");
411 if (Att->getModule() != "malloc")
428 // We expect the malloc functions to return a pointer.
460 // We expect the malloc functions to return a pointer.
475 if (Att->getModule() != "malloc")
540 // FIXME: at the time this code was written, malloc() regions were
562 // called on a pointer that does not get its pointee directly from malloc().
692 os << "Argument to free() was allocated by alloca(), not malloc()";
696 os << ", which is not memory allocated by malloc()";
698 os << "not memory allocated by malloc()";
703 os << ", which is not memory allocated by malloc()";
705 os << "not memory allocated by malloc()";
760 // malloc(size).
1267 // Malloc checker cannot differentiate between them. The right way of doing