Home | History | Annotate | Download | only in Analysis

Lines Matching refs:free

3 void free(void *);
7 free(a); // expected-warning {{Argument to free() is the address of the local variable 'a', which is not memory allocated by malloc()}}
12 free(&a); // expected-warning {{Argument to free() is the address of the local variable 'a', which is not memory allocated by malloc()}}
17 free(a); // expected-warning {{Argument to free() is the address of the static variable 'a', which is not memory allocated by malloc()}}
21 free(x); // no-warning
26 free(ptr()); // no-warning
30 free((void*)1000); // expected-warning {{Argument to free() is a constant address (1000), which is not memory allocated by malloc()}}
34 free(*x); // no-warning
39 free((*x)+8); // no-warning
44 free(&&label); // expected-warning {{Argument to free() is the address of the label 'label', which is not memory allocated by malloc()}}
48 free((void*)&t10); // expected-warning {{Argument to free() is the address of the function 't10', which is not memory allocated by malloc()}}
53 free(p); // expected-warning {{Argument to free() was allocated by alloca(), not malloc()}}
57 free(^{return;}); // expected-warning {{Argument to free() is a block, which is not memory allocated by malloc()}}
61 free(&a); // expected-warning {{Argument to free() is the address of the parameter 'a', which is not memory allocated by malloc()}}
66 free(someGlobal); // expected-warning {{Argument to free() is the address of the global variable 'someGlobal', which is not memory allocated by malloc()}}
71 free(x[offset]); // no-warning