Lines Matching refs:warning
23 …delete p; // expected-warning{{Memory allocated by malloc() should be deallocated by free(), not '…
29 …delete q; // expected-warning{{Memory allocated by realloc() should be deallocated by free(), not …
34 …delete p; // expected-warning{{Memory allocated by calloc() should be deallocated by free(), not '…
39 …delete p; // expected-warning{{Memory allocated by strdup() should be deallocated by free(), not '…
44 …delete p; // expected-warning{{Memory allocated by my_malloc() should be deallocated by free(), no…
49 …operator delete(p); // expected-warning{{Memory allocated by malloc() should be deallocated by fre…
54 …delete[] p; // expected-warning{{Memory allocated by malloc() should be deallocated by free(), not…
59 …operator delete[](p); // expected-warning{{Memory allocated by malloc() should be deallocated by f…
65 …free(p); // expected-warning{{Memory allocated by 'new' should be deallocated by 'delete', not fre…
70 …free(p); // expected-warning{{Memory allocated by operator new should be deallocated by 'delete', …
75 …free(p); // expected-warning{{Memory allocated by 'new[]' should be deallocated by 'delete[]', not…
80 …realloc(p, sizeof(long)); // expected-warning{{Memory allocated by 'new' should be deallocated by …
85 …realloc(p, sizeof(long)); // expected-warning{{Memory allocated by operator new should be dealloca…
90 …realloc(p, sizeof(long)); // expected-warning{{Memory allocated by 'new[]' should be deallocated b…
95 …delete[] p; // expected-warning{{Memory allocated by 'new' should be deallocated by 'delete', not …
100 …delete[] p; // expected-warning{{Memory allocated by operator new should be deallocated by 'delete…
105 …delete p; // expected-warning{{Memory allocated by 'new[]' should be deallocated by 'delete[]', no…
110 …delete p; // expected-warning{{Memory allocated by operator new[] should be deallocated by 'delete…
115 …NSData *d = [NSData dataWithBytesNoCopy:p length:sizeof(int) freeWhenDone:1]; // expected-warning{…
127 delete &i; // no-warning
130 delete ++p1; // no-warning
134 delete p2; // no-warning
136 int *p3 = new int; // no-warning
142 operator delete(p); // no-warning
148 delete p; // no-warning
154 p = new(p) int; // no-warning
165 free(&i); // no-warning
168 free(++p1); // no-warning
172 free(p2); // no-warning
174 int *p3 = (int *)malloc(sizeof(int)); // no-warning
180 free(p); // no-warning
186 p = new(p) int; // no-warning
198 …// expected-warning@-1 {{Memory allocated by 'new[]' should be deallocated by 'delete[]', not 'del…
199 …// expected-warning@-2 {{Memory allocated by malloc() should be deallocated by free(), not 'delete…
206 } // no-warning
216 } // no-warning