Lines Matching refs:free
26 void free(void *);
51 free(p);
52 free(p); // expected-warning{{Attempt to free released memory}}
58 realloc(p,0); // expected-warning{{Attempt to free released memory}}
98 free(p);
100 free(r);
108 free(p); // expected-warning {{Attempt to free released memory}}
110 free(r);
118 free(p); // expected-warning {{Attempt to free released memory}}
120 free(r);
122 free(p); // expected-warning {{Attempt to free released memory}}
128 free(r);
133 free(r);
147 free(r);
152 free(r);
161 free(buf);
170 free(buf2);
179 free(buf);
183 free(buf);
192 free(buf2);
208 free(buf2);
217 free(buf); // expected-warning {{Attempt to free released memory}}
221 free(buf);
231 free(p); // no warning
246 free(q);
252 free(p);
258 free(p);
284 free(p);
290 free(p);
296 free(p);
302 free(p);
309 free(q);
316 free(q);
329 free(p);
342 free(p);
356 free(q);
370 free(q);
402 free(p);
417 free(buf);
421 free(0);
426 free(x);
432 free(x);
456 free(s);
466 free(s);
476 free(s);
486 free(s);
496 free(s);
506 free(s);
516 free(s);
526 free(s);
536 free(s);
546 free(s);
556 free(s);
569 free(s);
582 free(s);
595 free(s);
608 free(s);
621 free(s);
634 free(s);
644 free(s);
654 free(s);
664 free(s);
670 free(p);
676 free(p);
683 free(buf);
698 free(buf);
707 free(buf); // expected-warning{{never executed}}
714 free(p); // no warning - a nop
719 free(p); // no warning
737 free(p);
743 free(p);
744 free(p); // expected-warning{{Attempt to free released memory}}
750 free(p);
760 free(p);
762 free(p); // no warning
768 free(p);
770 free(p); // no warning
776 free(y);
793 free(p);
795 free(p);
800 free(p);
806 free(p);
813 free(p);
815 free(p);
824 free(p);
831 free(px);
864 free(p);
876 free(Gl);
891 free(GlS.x);
937 free(&(x[0]));
943 free(pp[0]);
949 free(*pp);
959 free(p); // no warning
973 free(p);
1003 free(p);
1016 free(p);
1071 free(p);
1085 free(p);
1101 // Potentially, the user could free the struct by performing pointer arithmetic on the return value.
1141 free(s2);
1147 free(s2);
1153 free(s2);
1159 free(s2);
1176 free(_ctx);
1183 free(ctx);
1191 free(ctx);
1203 free(ctx);
1240 free(buffer);
1297 // Assume that functions which take a function pointer can free memory even if
1303 const_ptr_and_callback(0, x, 12, free); // no - warning
1315 sqlite3_bind_text_my(0, x, 12, free); // no - warning
1346 free(p);
1357 free(x1);
1368 free(x1);
1369 free(x2);
1378 free(x1);
1390 free(x);
1403 free(m);
1445 free(CGBitmapContextGetData(context));
1460 free(context);
1469 // Make sure we catch errors when we free in a function which does not allocate memory.
1472 free(p);
1475 free(p); // expected-warning {{Attempt to free released memory}}
1485 char *m = realloc(a->p, size); // expected-warning {{Attempt to free released memory}}
1486 // We don't expect a use-after-free for a->P here because the warning above
1491 // We should not warn in this case since the caller will presumably free a->p in all cases.
1506 free(ptr); // no-warning
1550 // Technically a false negative here -- we know the system function won't free
1558 free(ss.p);
1565 // Technically a false negative here -- we know the system function won't free
1573 free(p[0]);
1582 free(&memoryBlock[-1]); // no-warning
1588 free(&array[0]); // expected-warning{{Argument to free() is offset by 8 bytes from the start of memory allocated by malloc()}}
1594 free(p); // expected-warning{{Argument to free() is offset by 8 bytes from the start of memory allocated by malloc()}}
1600 free(r); // expected-warning {{Argument to free() is offset by -10 bytes from the start of memory allocated by malloc()}}
1607 free(p); // expected-warning{{Argument to free() is offset by 4 bytes from the start of memory allocated by malloc()}}
1613 free(&array[-1]); // no-warning
1619 free(r-10); // no-warning
1627 free(p); // expected-warning {{Argument to free() is offset by 8 bytes from the start of memory allocated by malloc()}}
1634 free(r); // no-warning
1641 free(r-10); // expected-warning {{Argument to free() is the address of the local variable 'c', which is not memory allocated by malloc()}}
1647 free(r+1); // expected-warning {{Argument to free() is the address of the local variable 'c', which is not memory allocated by malloc()}}
1653 free(p);
1654 free(&array[0]); // expected-warning{{Attempt to free released memory}}
1667 free(string); // expected-warning {{Argument to free() is offset by 1 byte from the start of memory allocated by malloc()}}
1674 free(string); // expected-warning {{Argument to free() is offset by 1 byte from the start of memory allocated by malloc()}}
1681 free(s); // no-warning
1737 // Some data structures may hold onto the pointer and free it later.
1764 constEscape(&(s.x)); // could free s->p!
1783 // FIXME: This is a leak: if we think a system function won't free p, it
1784 // won't free (p-1) either.
1790 free(s);