Home | History | Annotate | Download | only in Checkers

Lines Matching refs:Memory

10 // This file defines malloc/free checker, which checks for potential memory
37 enum Kind { // Reference to allocated memory.
39 // Reference to released/freed memory.
120 /// functions might free the memory.
157 /// Check if this is one of the functions which can allocate/reallocate memory
178 /// Update the RefState to reflect the new memory allocation.
199 ///\brief Check if the memory associated with this symbol was released.
502 // If the first selector is dataWithBytesNoCopy, assume that the memory will
506 // TODO: Check that the memory was allocated with malloc.
676 // Of course, free() can work on memory allocated outside the current
698 new BugType("Double free", "Memory Error"));
700 (RS->isReleased() ? "Attempt to free released memory" :
701 "Attempt to free non-owned memory"), N);
809 BT_BadFree.reset(new BugType("Bad free", "Memory Error"));
825 os << ", which is not memory allocated by malloc()";
827 os << "not memory allocated by malloc()";
832 os << ", which is not memory allocated by malloc()";
834 os << "not memory allocated by malloc()";
909 // If the size is 0, free the memory.
1001 BT_Leak.reset(new BugType("Memory leak", "Memory Error"));
1023 os << "Memory is never released; potential leak";
1025 os << " of memory pointed to by '";
1131 // the callee could still free the memory.
1139 // Check if we are returning freed memory.
1203 BT_UseFree.reset(new BugType("Use-after-free", "Memory Error"));
1206 "Use of memory after it is freed",N);
1234 // (1) we are binding to something that is not a memory region.
1310 // For now, assume that any C++ call can free memory.
1320 // can free memory.
1326 // Whitelist the ObjC methods which do free memory.
1355 memory.
1356 // Most framework methods do not free memory.
1372 // If it's not a system call, assume it frees memory.
1385 // Look for the deallocator argument. We know that the memory ownership
1400 // 'closefn' is specified (and if that function does free memory),
1441 // Otherwise, assume that the function does not free memory.
1442 // Most system calls do not free the memory.
1459 // If it's a call which might free or reallocate memory, we assume that all
1540 Msg = "Memory is allocated";
1542 "Returned allocated memory");
1544 Msg = "Memory is released";
1546 "Returned released memory");
1548 Msg = "Memory ownership is transfered";
1572 Msg = "Attempt to reallocate memory";
1574 "Returned reallocated memory");