Lines Matching refs:free
11 void free(void *);
30 free(p); in f2()
31 free(p); // expected-warning{{Attempt to free released memory}} in f2()
73 free(p); in reallocFails()
75 free(r); in reallocFails()
83 free(p); // expected-warning {{Attempt to free released memory}} in reallocSizeZero1()
85 free(r); in reallocSizeZero1()
93 free(p); // expected-warning {{Attempt to free released memory}} in reallocSizeZero2()
95 free(r); in reallocSizeZero2()
97 free(p); // expected-warning {{Attempt to free released memory}} in reallocSizeZero2()
103 free(r); in reallocSizeZero3()
108 free(r); in reallocSizeZero4()
122 free(r); in reallocPtrZero2()
127 free(r); in reallocPtrZero3()
136 free(buf); in reallocRadar6337483_1()
145 free(buf2); in reallocRadar6337483_2()
154 free(buf); in reallocRadar6337483_3()
158 free(buf); in reallocRadar6337483_3()
167 free(buf2); in reallocRadar6337483_4()
183 free(buf2); in reallocfRadar6337483_4()
192 free(buf); // expected-warning {{Attempt to free released memory}} in reallocfRadar6337483_3()
196 free(buf); in reallocfRadar6337483_3()
206 free(p); // no warning in CheckUseZeroAllocatedNoWarn1()
216 free(q); in CheckUseZeroAllocatedNoWarn3()
222 free(p); in CheckUseZeroAllocatedNoWarn4()
228 free(p); in CheckUseZeroAllocated1()
249 free(p); in CheckUseZeroAllocated4()
255 free(p); in CheckUseZeroAllocated5()
261 free(p); in CheckUseZeroAllocated6()
267 free(p); in CheckUseZeroAllocated7()
274 free(q); in CheckUseZeroAllocated8()
281 free(q); in CheckUseZeroAllocated9()
294 free(p); in CheckUseZeroAllocatedPathNoWarn()
307 free(p); in CheckUseZeroAllocatedPathWarn()
321 free(q); in CheckUseZeroReallocatedPathNoWarn()
335 free(q); in CheckUseZeroReallocatedPathWarn()
367 free(p); in f6()
382 free(buf); in pr6069()
386 free(0); in pr6293()
391 free(x); in f7()
397 free(x); in f8()
421 free(s); in cast_emtpy_struct()
431 free(s); in cast_struct_1()
441 free(s); in cast_struct_2()
451 free(s); in cast_struct_3()
461 free(s); in cast_struct_4()
471 free(s); in cast_struct_5()
481 free(s); in cast_struct_warn_1()
491 free(s); in cast_struct_warn_2()
501 free(s); in cast_struct_flex_array_1()
511 free(s); in cast_struct_flex_array_2()
521 free(s); in cast_struct_flex_array_3()
534 free(s); in cast_struct_flex_array_4()
547 free(s); in cast_struct_flex_array_5()
560 free(s); in cast_struct_flex_array_6()
573 free(s); in cast_struct_flex_array_warn_1()
586 free(s); in cast_struct_flex_array_warn_2()
599 free(s); in cast_struct_flex_array_warn_3()
609 free(s); in cast_struct_flex_array_warn_4()
619 free(s); in cast_struct_flex_array_warn_5()
629 free(s); in cast_struct_flex_array_warn_6()
635 free(p); in mallocCastToVoid()
641 free(p); in mallocCastToFP()
648 free(buf); in mallocGarbage()
663 free(buf); in callocZeroesGood()
672 free(buf); // expected-warning{{never executed}} in callocZeroesBad()
679 free(p); // no warning - a nop in nullFree()
684 free(p); // no warning in paramFree()
702 free(p); in mallocEscapeFree()
708 free(p); in mallocEscapeFreeFree()
709 free(p); // expected-warning{{Attempt to free released memory}} in mallocEscapeFreeFree()
715 free(p); in mallocEscapeFreeUse()
725 free(p); in mallocEscapeFreeCustomAlloc()
727 free(p); // no warning in mallocEscapeFreeCustomAlloc()
733 free(p); in mallocEscapeFreeCustomAlloc2()
735 free(p); // no warning in mallocEscapeFreeCustomAlloc2()
741 free(y); in mallocBindFreeUse()
758 free(p); in mallocFreeMalloc()
760 free(p); in mallocFreeMalloc()
765 free(p); in mallocFreeUse_params()
771 free(p); in mallocFreeUse_params2()
778 free(p); in mallocFailedOrNot()
780 free(p); in mallocFailedOrNot()
789 free(p); in mallocReturnFreed()
796 free(px); in useAfterFreeStruct()
829 free(p); in vallocEscapeFreeUse()
841 free(Gl); in GlobalFree()
856 free(GlS.x); in GlobalStructMallocFree()
902 free(&(x[0])); in testElemRegion1()
908 free(pp[0]); in testElemRegion2()
914 free(*pp); in testElemRegion3()
924 free(p); // no warning in PassTheAddrOfAllocatedData()
938 free(p); in foo2()
968 free(p); in mallocExit()
981 free(p); in mallocAssert()
1036 free(p); in symbolLostWithStrcpy()
1050 free(p); in symbolLostWithStrcpy_InlineStrcpyVersion()
1091 free(s2); in testStrdupContentIsDefined()
1108 free(_ctx); in releasePtr()
1115 free(ctx); in useFunOpen()
1123 free(ctx); in useFunOpenNoReleaseFunction()
1135 free(ctx); in useFunOpenReadNoRelease()
1172 free(buffer); in radar10978247()
1234 const_ptr_and_callback(0, x, 12, free); // no - warning in r11160612_1()
1246 sqlite3_bind_text_my(0, x, 12, free); // no - warning in r11160612_4()
1277 free(p); in dependsOnValueOfPtr()
1288 free(x1); in CMPRegionHeapToStack()
1299 free(x1); in CMPRegionHeapToHeap2()
1300 free(x2); in CMPRegionHeapToHeap2()
1309 free(x1); in CMPRegionHeapToHeap()
1321 free(x); in HeapAssignment()
1334 free(m); in cmpHeapAllocationToUnknown()
1376 free(CGBitmapContextGetData(context)); in testCGContextNoLeak()
1391 free(context); in finalize_connection_context()
1403 free(p); in freeButNoMalloc()
1406 free(p); // expected-warning {{Attempt to free released memory}} in freeButNoMalloc()
1437 free(ptr); // no-warning in test()
1481 free(ss.p); in testPassToSystemHeaderFunctionIndirectlyStructFree()
1496 free(p[0]); in testPassToSystemHeaderFunctionIndirectlyArrayFree()
1505 free(&memoryBlock[-1]); // no-warning in testOffsetDeallocate()
1511 …free(&array[0]); // expected-warning{{Argument to free() is offset by 8 bytes from the start of me… in testOffsetOfRegionFreed()
1517 …free(p); // expected-warning{{Argument to free() is offset by 8 bytes from the start of memory all… in testOffsetOfRegionFreed2()
1523 …free(r); // expected-warning {{Argument to free() is offset by -10 bytes from the start of memory … in testOffsetOfRegionFreed3()
1530 …free(p); // expected-warning{{Argument to free() is offset by 4 bytes from the start of memory all… in testOffsetOfRegionFreedAfterFunctionCall()
1536 free(&array[-1]); // no-warning in testFixManipulatedPointerBeforeFree()
1542 free(r-10); // no-warning in testFixManipulatedPointerBeforeFree2()
1550 …free(p); // expected-warning {{Argument to free() is offset by 8 bytes from the start of memory al… in freeOffsetPointerPassedToFunction()
1557 free(r); // no-warning in freeUnknownOffsetPointer()
1564 …free(r-10); // expected-warning {{Argument to free() is the address of the local variable 'c', whi… in testFreeNonMallocPointerWithNoOffset()
1570 …free(r+1); // expected-warning {{Argument to free() is the address of the local variable 'c', whic… in testFreeNonMallocPointerWithOffset()
1576 free(p); in testOffsetZeroDoubleFree()
1577 free(&array[0]); // expected-warning{{Attempt to free released memory}} in testOffsetZeroDoubleFree()
1590 …free(string); // expected-warning {{Argument to free() is offset by 1 byte from the start of memor… in testOffsetPassedToStrlenThenFree()
1597 …free(string); // expected-warning {{Argument to free() is offset by 1 byte from the start of memor… in testOffsetPassedAsConst()
1604 free(s); // no-warning in poolFreeC()