Lines Matching full:data
21 void *data;
22 data = malloc(size);
23 if (data == 0)
25 return data;
33 void *data = 0;
34 my_malloc1(&data, 4);
35 } // expected-warning {{Potential leak of memory pointed to by 'data'}}
38 void *data = 0;
39 my_malloc1(&data, 4);
40 my_free1(data);
44 void *data = my_malloc2(1, 4);
45 data = 0;
46 int x = 5;// expected-warning {{Potential leak of memory pointed to by 'data'}}
47 data = my_malloc2(1, 4);
48 } // expected-warning {{Potential leak of memory pointed to by 'data'}}
51 void *data = my_malloc2(1, 4);
52 free(data);
53 data = my_malloc2(1, 4);
54 free(data);
58 int *data = (int*)my_malloc2(1, 4);
59 my_free1(data);
60 data = (int *)my_malloc2(1, 4);
61 my_free1(data);
62 return *data; // expected-warning {{Use of memory after it is freed}}
66 int *data = (int *)my_malloc2(1, 4);
67 my_free1((int*)data);
68 my_free1((int*)data); // expected-warning{{Use of memory after it is freed}}
73 int *data;
74 my_free1((int*)data);