Lines Matching refs:free
4 void free(void *);
9 free(a); // expected-warning {{Argument to free() is the address of the local variable 'a', which is not memory allocated by malloc()}}
14 free(&a); // expected-warning {{Argument to free() is the address of the local variable 'a', which is not memory allocated by malloc()}}
19 free(a); // expected-warning {{Argument to free() is the address of the static variable 'a', which is not memory allocated by malloc()}}
23 free(x); // no-warning
28 free(ptr()); // no-warning
32 free((void*)1000); // expected-warning {{Argument to free() is a constant address (1000), which is not memory allocated by malloc()}}
36 free(*x); // no-warning
41 free((*x)+8); // no-warning
46 free(&&label); // expected-warning {{Argument to free() is the address of the label 'label', which is not memory allocated by malloc()}}
50 free((void*)&t10); // expected-warning {{Argument to free() is the address of the function 't10', which is not memory allocated by malloc()}}
55 free(p); // expected-warning {{Memory allocated by alloca() should not be deallocated}}
60 free(p); // expected-warning {{Memory allocated by alloca() should not be deallocated}}
64 free(^{return;}); // expected-warning {{Argument to free() is a block, which is not memory allocated by malloc()}}
68 free(&a); // expected-warning {{Argument to free() is the address of the parameter 'a', which is not memory allocated by malloc()}}
73 free(someGlobal); // expected-warning {{Argument to free() is the address of the global variable 'someGlobal', which is not memory allocated by malloc()}}
78 free(x[offset]); // no-warning