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);
117 // No leak if malloc returns null.
147 // This case tests that storing malloc'ed memory to a static variable which is
152 p = malloc(12);
156 // This case tests that storing malloc'ed memory to a static global variable
161 p_f4 = malloc(12);
166 int *q = malloc(12);
172 int *p = malloc(12);
180 int *p = malloc(12);
199 char *x = (char*) malloc(4);
205 char *x = (char*) malloc(4);
211 int *x = malloc(11); // expected-warning{{Cast a region whose size is not a multiple of the destination type size}}
215 int *buf = malloc(2); // expected-warning{{Cast a region whose size is not a multiple of the destination type size}}
220 void *p = malloc(2);
226 void *p = malloc(2);
231 // This tests that malloc() buffers are undefined by default
233 char *buf = malloc(2);
265 int *p = malloc(12);
266 int *q = malloc(12);