Lines Matching refs:free
26 void free(void *);
51 free(p); in f2()
52 free(p); // expected-warning{{Attempt to free released memory}} in f2()
98 free(p); in reallocFails()
100 free(r); in reallocFails()
108 free(p); // expected-warning {{Attempt to free released memory}} in reallocSizeZero1()
110 free(r); in reallocSizeZero1()
118 free(p); // expected-warning {{Attempt to free released memory}} in reallocSizeZero2()
120 free(r); in reallocSizeZero2()
122 free(p); // expected-warning {{Attempt to free released memory}} in reallocSizeZero2()
128 free(r); in reallocSizeZero3()
133 free(r); in reallocSizeZero4()
147 free(r); in reallocPtrZero2()
152 free(r); in reallocPtrZero3()
161 free(buf); in reallocRadar6337483_1()
170 free(buf2); in reallocRadar6337483_2()
179 free(buf); in reallocRadar6337483_3()
183 free(buf); in reallocRadar6337483_3()
192 free(buf2); in reallocRadar6337483_4()
208 free(buf2); in reallocfRadar6337483_4()
217 free(buf); // expected-warning {{Attempt to free released memory}} in reallocfRadar6337483_3()
221 free(buf); in reallocfRadar6337483_3()
231 free(p); // no warning in CheckUseZeroAllocatedNoWarn1()
246 free(q); in CheckUseZeroAllocatedNoWarn3()
252 free(p); in CheckUseZeroAllocatedNoWarn4()
258 free(p); in CheckUseZeroAllocated1()
284 free(p); in CheckUseZeroAllocated4()
290 free(p); in CheckUseZeroAllocated5()
296 free(p); in CheckUseZeroAllocated6()
302 free(p); in CheckUseZeroAllocated7()
309 free(q); in CheckUseZeroAllocated8()
316 free(q); in CheckUseZeroAllocated9()
329 free(p); in CheckUseZeroAllocatedPathNoWarn()
342 free(p); in CheckUseZeroAllocatedPathWarn()
356 free(q); in CheckUseZeroReallocatedPathNoWarn()
370 free(q); in CheckUseZeroReallocatedPathWarn()
402 free(p); in f6()
417 free(buf); in pr6069()
421 free(0); in pr6293()
426 free(x); in f7()
432 free(x); in f8()
456 free(s); in cast_emtpy_struct()
466 free(s); in cast_struct_1()
476 free(s); in cast_struct_2()
486 free(s); in cast_struct_3()
496 free(s); in cast_struct_4()
506 free(s); in cast_struct_5()
516 free(s); in cast_struct_warn_1()
526 free(s); in cast_struct_warn_2()
536 free(s); in cast_struct_flex_array_1()
546 free(s); in cast_struct_flex_array_2()
556 free(s); in cast_struct_flex_array_3()
569 free(s); in cast_struct_flex_array_4()
582 free(s); in cast_struct_flex_array_5()
595 free(s); in cast_struct_flex_array_6()
608 free(s); in cast_struct_flex_array_warn_1()
621 free(s); in cast_struct_flex_array_warn_2()
634 free(s); in cast_struct_flex_array_warn_3()
644 free(s); in cast_struct_flex_array_warn_4()
654 free(s); in cast_struct_flex_array_warn_5()
664 free(s); in cast_struct_flex_array_warn_6()
670 free(p); in mallocCastToVoid()
676 free(p); in mallocCastToFP()
683 free(buf); in mallocGarbage()
698 free(buf); in callocZeroesGood()
707 free(buf); // expected-warning{{never executed}} in callocZeroesBad()
714 free(p); // no warning - a nop in nullFree()
719 free(p); // no warning in paramFree()
737 free(p); in mallocEscapeFree()
743 free(p); in mallocEscapeFreeFree()
744 free(p); // expected-warning{{Attempt to free released memory}} in mallocEscapeFreeFree()
750 free(p); in mallocEscapeFreeUse()
760 free(p); in mallocEscapeFreeCustomAlloc()
762 free(p); // no warning in mallocEscapeFreeCustomAlloc()
768 free(p); in mallocEscapeFreeCustomAlloc2()
770 free(p); // no warning in mallocEscapeFreeCustomAlloc2()
776 free(y); in mallocBindFreeUse()
793 free(p); in mallocFreeMalloc()
795 free(p); in mallocFreeMalloc()
800 free(p); in mallocFreeUse_params()
806 free(p); in mallocFreeUse_params2()
813 free(p); in mallocFailedOrNot()
815 free(p); in mallocFailedOrNot()
824 free(p); in mallocReturnFreed()
831 free(px); in useAfterFreeStruct()
864 free(p); in vallocEscapeFreeUse()
876 free(Gl); in GlobalFree()
891 free(GlS.x); in GlobalStructMallocFree()
937 free(&(x[0])); in testElemRegion1()
943 free(pp[0]); in testElemRegion2()
949 free(*pp); in testElemRegion3()
959 free(p); // no warning in PassTheAddrOfAllocatedData()
973 free(p); in foo2()
1003 free(p); in mallocExit()
1016 free(p); in mallocAssert()
1071 free(p); in symbolLostWithStrcpy()
1085 free(p); in symbolLostWithStrcpy_InlineStrcpyVersion()
1141 free(s2); in testStrdupContentIsDefined()
1147 free(s2); in testWinStrdupContentIsDefined()
1153 free(s2); in testWcsdupContentIsDefined()
1159 free(s2); in testWinWcsdupContentIsDefined()
1176 free(_ctx); in releasePtr()
1183 free(ctx); in useFunOpen()
1191 free(ctx); in useFunOpenNoReleaseFunction()
1203 free(ctx); in useFunOpenReadNoRelease()
1240 free(buffer); in radar10978247()
1302 const_ptr_and_callback(0, x, 12, free); // no - warning in r11160612_1()
1314 sqlite3_bind_text_my(0, x, 12, free); // no - warning in r11160612_4()
1345 free(p); in dependsOnValueOfPtr()
1356 free(x1); in CMPRegionHeapToStack()
1367 free(x1); in CMPRegionHeapToHeap2()
1368 free(x2); in CMPRegionHeapToHeap2()
1377 free(x1); in CMPRegionHeapToHeap()
1389 free(x); in HeapAssignment()
1402 free(m); in cmpHeapAllocationToUnknown()
1444 free(CGBitmapContextGetData(context)); in testCGContextNoLeak()
1459 free(context); in finalize_connection_context()
1471 free(p); in freeButNoMalloc()
1474 free(p); // expected-warning {{Attempt to free released memory}} in freeButNoMalloc()
1505 free(ptr); // no-warning in test()
1557 free(ss.p); in testPassToSystemHeaderFunctionIndirectlyStructFree()
1572 free(p[0]); in testPassToSystemHeaderFunctionIndirectlyArrayFree()
1581 free(&memoryBlock[-1]); // no-warning in testOffsetDeallocate()
1587 …free(&array[0]); // expected-warning{{Argument to free() is offset by 8 bytes from the start of me… in testOffsetOfRegionFreed()
1593 …free(p); // expected-warning{{Argument to free() is offset by 8 bytes from the start of memory all… in testOffsetOfRegionFreed2()
1599 …free(r); // expected-warning {{Argument to free() is offset by -10 bytes from the start of memory … in testOffsetOfRegionFreed3()
1606 …free(p); // expected-warning{{Argument to free() is offset by 4 bytes from the start of memory all… in testOffsetOfRegionFreedAfterFunctionCall()
1612 free(&array[-1]); // no-warning in testFixManipulatedPointerBeforeFree()
1618 free(r-10); // no-warning in testFixManipulatedPointerBeforeFree2()
1626 …free(p); // expected-warning {{Argument to free() is offset by 8 bytes from the start of memory al… in freeOffsetPointerPassedToFunction()
1633 free(r); // no-warning in freeUnknownOffsetPointer()
1640 …free(r-10); // expected-warning {{Argument to free() is the address of the local variable 'c', whi… in testFreeNonMallocPointerWithNoOffset()
1646 …free(r+1); // expected-warning {{Argument to free() is the address of the local variable 'c', whic… in testFreeNonMallocPointerWithOffset()
1652 free(p); in testOffsetZeroDoubleFree()
1653 free(&array[0]); // expected-warning{{Attempt to free released memory}} in testOffsetZeroDoubleFree()
1666 …free(string); // expected-warning {{Argument to free() is offset by 1 byte from the start of memor… in testOffsetPassedToStrlenThenFree()
1673 …free(string); // expected-warning {{Argument to free() is offset by 1 byte from the start of memor… in testOffsetPassedAsConst()
1680 free(s); // no-warning in poolFreeC()
1789 free(s); in testMallocIntoMalloc()