Lines Matching full:warning
29 return; // expected-warning{{Potential leak of memory pointed to by}}
35 free(p); // expected-warning{{Attempt to free released memory}}
41 realloc(p,0); // expected-warning{{Attempt to free released memory}}
46 int *q = realloc(p,0); // no-warning
52 return; // no-warning
57 return; // expected-warning{{Potential leak of memory pointed to by}}
62 return; // expected-warning{{Potential leak of memory pointed to by}}
67 } // expected-warning{{Potential leak of memory pointed to by}}
70 myglobalpointer = my_malloc(12); // no-warning
76 } // expected-warning{{Potential leak of memory pointed to by}}
80 *pp = my_malloc(42); // no-warning
84 somestuff->somefield = my_malloc(12); // no-warning
89 *pps = my_malloc(sizeof(struct stuff)); // no-warning
90 (*pps)->somefield = my_malloc(42); // no-warning
96 free(p); // expected-warning{{Attempt to free released memory}}
102 my_free(p); // expected-warning{{Attempt to free released memory}}
108 my_hold(p); // expected-warning{{Attempt to free released memory}}
114 my_hold2(0, 0, p); // expected-warning{{Attempt to free released memory}}
121 return; // no-warning
122 free(p); // no-warning
129 free(p); // expected-warning{{Attempt to free non-owned memory}}
135 return p; // expected-warning{{Use of memory after it is freed}}
142 return p; // no-warning
153 return p; // no-warning
162 return p_f4; // no-warning
168 return q; // no-warning
174 return; // no-warning
182 return; // no-warning
201 x[0] = 'a'; // expected-warning{{Use of memory after it is freed}}
207 x[0] = 'a'; // expected-warning{{Use of memory after it is freed}}
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}}
234 char result = buf[1]; // expected-warning{{undefined}}
242 return; // expected-warning{{Potential leak of memory pointed to by}}
248 char result = buf[3]; // no-warning
252 return result; // no-warning
257 char result = buf[3]; // no-warning
259 free(buf); // expected-warning{{never executed}}
261 return result; // expected-warning{{Potential leak of memory pointed to by}}