Home | History | Annotate | Download | only in Analysis

Lines Matching full:sizeof

6 typedef __typeof__(sizeof(int)) size_t;
22 int *p = (int *)malloc(sizeof(int));
33 int *p = (int *)calloc(1, sizeof(int));
43 int *p = (int *)my_malloc(sizeof(int));
48 int *p = (int *)malloc(sizeof(int));
53 int *p = (int *)malloc(sizeof(int));
58 int *p = (int *)malloc(sizeof(int));
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()}}
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:}}
140 int *p = (int *)malloc(sizeof(int));
146 int *p = (int *)malloc(sizeof(int));
152 int *p = (int *)malloc(sizeof(int));
167 int *p1 = (int *)malloc(sizeof(int));
170 int *p2 = (int *)malloc(sizeof(int));
174 int *p3 = (int *)malloc(sizeof(int)); // no-warning