Lines Matching refs:free
11 void free(void *);
30 free(p);
31 free(p); // expected-warning{{Attempt to free released memory}}
37 realloc(p,0); // expected-warning{{Attempt to free released memory}}
73 free(p);
75 free(r);
83 free(p); // expected-warning {{Attempt to free released memory}}
85 free(r);
93 free(p); // expected-warning {{Attempt to free released memory}}
95 free(r);
97 free(p); // expected-warning {{Attempt to free released memory}}
103 free(r);
108 free(r);
122 free(r);
127 free(r);
136 free(buf);
145 free(buf2);
154 free(buf);
158 free(buf);
167 free(buf2);
183 free(buf2);
192 free(buf); // expected-warning {{Attempt to free released memory}}
196 free(buf);
206 free(p); // no warning
216 free(q);
222 free(p);
228 free(p);
249 free(p);
255 free(p);
261 free(p);
267 free(p);
274 free(q);
281 free(q);
294 free(p);
307 free(p);
321 free(q);
335 free(q);
367 free(p);
382 free(buf);
386 free(0);
391 free(x);
397 free(x);
421 free(s);
431 free(s);
441 free(s);
451 free(s);
461 free(s);
471 free(s);
481 free(s);
491 free(s);
501 free(s);
511 free(s);
521 free(s);
534 free(s);
547 free(s);
560 free(s);
573 free(s);
586 free(s);
599 free(s);
609 free(s);
619 free(s);
629 free(s);
635 free(p);
641 free(p);
648 free(buf);
663 free(buf);
672 free(buf); // expected-warning{{never executed}}
679 free(p); // no warning - a nop
684 free(p); // no warning
702 free(p);
708 free(p);
709 free(p); // expected-warning{{Attempt to free released memory}}
715 free(p);
725 free(p);
727 free(p); // no warning
733 free(p);
735 free(p); // no warning
741 free(y);
758 free(p);
760 free(p);
765 free(p);
771 free(p);
778 free(p);
780 free(p);
789 free(p);
796 free(px);
829 free(p);
841 free(Gl);
856 free(GlS.x);
902 free(&(x[0]));
908 free(pp[0]);
914 free(*pp);
924 free(p); // no warning
938 free(p);
968 free(p);
981 free(p);
1036 free(p);
1050 free(p);
1066 // Potentially, the user could free the struct by performing pointer arithmetic on the return value.
1091 free(s2);
1108 free(_ctx);
1115 free(ctx);
1123 free(ctx);
1135 free(ctx);
1172 free(buffer);
1229 // Assume that functions which take a function pointer can free memory even if
1235 const_ptr_and_callback(0, x, 12, free); // no - warning
1247 sqlite3_bind_text_my(0, x, 12, free); // no - warning
1278 free(p);
1289 free(x1);
1300 free(x1);
1301 free(x2);
1310 free(x1);
1322 free(x);
1335 free(m);
1377 free(CGBitmapContextGetData(context));
1392 free(context);
1401 // Make sure we catch errors when we free in a function which does not allocate memory.
1404 free(p);
1407 free(p); // expected-warning {{Attempt to free released memory}}
1417 char *m = realloc(a->p, size); // expected-warning {{Attempt to free released memory}}
1418 // We don't expect a use-after-free for a->P here because the warning above
1423 // We should not warn in this case since the caller will presumably free a->p in all cases.
1438 free(ptr); // no-warning
1474 free
1482 free(ss.p);
1489 // Technically a false negative here -- we know the system function won't free
1497 free(p[0]);
1506 free(&memoryBlock[-1]); // no-warning
1512 free(&array[0]); // expected-warning{{Argument to free() is offset by 8 bytes from the start of memory allocated by malloc()}}
1518 free(p); // expected-warning{{Argument to free() is offset by 8 bytes from the start of memory allocated by malloc()}}
1524 free(r); // expected-warning {{Argument to free() is offset by -10 bytes from the start of memory allocated by malloc()}}
1531 free(p); // expected-warning{{Argument to free() is offset by 4 bytes from the start of memory allocated by malloc()}}
1537 free(&array[-1]); // no-warning
1543 free(r-10); // no-warning
1551 free(p); // expected-warning {{Argument to free() is offset by 8 bytes from the start of memory allocated by malloc()}}
1558 free(r); // no-warning
1565 free(r-10); // expected-warning {{Argument to free() is the address of the local variable 'c', which is not memory allocated by malloc()}}
1571 free(r+1); // expected-warning {{Argument to free() is the address of the local variable 'c', which is not memory allocated by malloc()}}
1577 free(p);
1578 free(&array[0]); // expected-warning{{Attempt to free released memory}}
1591 free(string); // expected-warning {{Argument to free() is offset by 1 byte from the start of memory allocated by malloc()}}
1598 free(string); // expected-warning {{Argument to free() is offset by 1 byte from the start of memory allocated by malloc()}}
1605 free(s); // no-warning
1661 // Some data structures may hold onto the pointer and free it later.
1694 // FIXME: This is a leak: if we think a system function won't free p, it
1695 // won't free (p-1) either.