Home | History | Annotate | Download | only in Analysis

Lines Matching full:malloc

3 void *malloc(size_t);
7 void __attribute((ownership_returns(malloc))) *my_malloc(size_t);
8 void __attribute((ownership_takes(malloc, 1))) my_free(void *);
10 __attribute((ownership_holds(malloc, 1, 2)));
11 void __attribute((ownership_returns(malloc, 1))) *my_malloc2(size_t);
12 void __attribute((ownership_holds(malloc, 1))) my_hold(void *);
17 void __attribute((ownership_holds(malloc, 1)))
18 __attribute((ownership_holds(malloc, 1)))
19 __attribute((ownership_holds(malloc, 3))) my_hold2(void *, void *, void *);
28 int *p = malloc(12);
33 int *p = malloc(12);
39 int *p = malloc(12);
45 int *p = malloc(12);
118 // No leak if malloc returns null.
149 // This case tests that storing malloc'ed memory to a static variable which is
154 p = malloc(12);
158 // This case tests that storing malloc'ed memory to a static global variable
163 p_f4 = malloc(12);
168 int *q = malloc(12);
174 int *p = malloc(12);
182 int *p = malloc(12);
201 char *x = (char*) malloc(4);
207 char *x = (char*) malloc(4);
213 int *x = malloc(11); // expected-warning{{Cast a region whose size is not a multiple of the destination type size.}}
217 int *buf = malloc(2); // expected-warning{{Cast a region whose size is not a multiple of the destination type size.}}
222 void *p = malloc(2);
228 void *p = malloc(2);
233 // This tests that malloc() buffers are undefined by default
235 char *buf = malloc(2);
267 int *p = malloc(12);
268 int *q = malloc(12);