Lines Matching refs:free
11 free(p);
12 free(p); // expected-warning{{Attempt to free released memory}}
21 free(p);
27 free(&i); // expected-warning{{Argument to free() is the address of the local variable 'i', which is not memory allocated by malloc()}}
32 free(++p); // expected-warning{{Argument to free() is offset by 4 bytes from the start of memory allocated by malloc()}}
40 delete x; // expected-warning{{Memory allocated by malloc() should be deallocated by free(), not 'delete'}}
49 delete p; // expected-warning{{Attempt to free released memory}}
76 // Test that we check for free errors on escaped pointers.
91 delete p; // expected-warning{{Memory allocated by malloc() should be deallocated by free(), not 'delete'}}
97 free(p);
98 delete globalPtr; // expected-warning {{Attempt to free released memory}}