Home | History | Annotate | Download | only in Analysis

Lines Matching full:allocated

23   delete p; // expected-warning{{Memory allocated by malloc() should be deallocated by free(), not 'delete'}}
29 delete q; // expected-warning{{Memory allocated by realloc() should be deallocated by free(), not 'delete'}}
34 delete p; // expected-warning{{Memory allocated by calloc() should be deallocated by free(), not 'delete'}}
39 delete p; // expected-warning{{Memory allocated by strdup() should be deallocated by free(), not 'delete'}}
44 delete p; // expected-warning{{Memory allocated by my_malloc() should be deallocated by free(), not 'delete'}}
49 operator delete(p); // expected-warning{{Memory allocated by malloc() should be deallocated by free(), not operator delete}}
54 delete[] p; // expected-warning{{Memory allocated by malloc() should be deallocated by free(), not 'delete[]'}}
59 operator delete[](p); // expected-warning{{Memory allocated by malloc() should be deallocated by free(), not operator delete[]}}
65 free(p); // expected-warning{{Memory allocated by 'new' should be deallocated by 'delete', not free()}}
70 free(p); // expected-warning{{Memory allocated by operator new should be deallocated by 'delete', not free()}}
75 free(p); // expected-warning{{Memory allocated by 'new[]' should be deallocated by 'delete[]', not free()}}
80 realloc(p, sizeof(long)); // expected-warning{{Memory allocated by 'new' should be deallocated by 'delete', not realloc()}}
85 realloc(p, sizeof(long)); // expected-warning{{Memory allocated by operator new should be deallocated by 'delete', not realloc()}}
90 realloc(p, sizeof(long)); // expected-warning{{Memory allocated by 'new[]' should be deallocated by 'delete[]', not realloc()}}
95 delete[] p; // expected-warning{{Memory allocated by 'new' should be deallocated by 'delete', not 'delete[]'}}
100 delete[] p; // expected-warning{{Memory allocated by operator new should be deallocated by 'delete', not 'delete[]'}}
105 delete p; // expected-warning{{Memory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete'}}
110 delete p; // expected-warning{{Memory allocated by operator new[] should be deallocated by 'delete[]', not 'delete'}}
115 NSData *d = [NSData dataWithBytesNoCopy:p length:sizeof(int) freeWhenDone:1]; // expected-warning{{Memory allocated by 'new' should be deallocated by 'delete', not +dataWithBytesNoCopy:length:freeWhenDone:}}
116 // FIXME: should be "+dataWithBytesNoCopy:length:freeWhenDone: cannot take ownership of memory allocated by 'new'."
198 // expected-warning@-1 {{Memory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete'}}
199 // expected-warning@-2 {{Memory allocated by malloc() should be deallocated by free(), not 'delete'}}