Searched refs:free (Results 1 - 25 of 4437) sorted by relevance

1234567891011>>

/external/clang/test/Analysis/diagnostics/Inputs/include/sys/
H A Dqueue.h2 void free(void *);
3 #define FREE_POINTER(x) free(x)
/external/valgrind/massif/tests/
H A Dzero.c8 free(malloc(0));
9 free(malloc(0));
10 free(malloc(0));
11 free(malloc(0));
12 free(malloc(0));
13 free(malloc(0));
14 free(malloc(0));
15 free(malloc(0));
16 free(malloc(0));
17 free(mallo
[all...]
/external/clang/test/Sema/
H A Dconditional.c6 void free(void *ptr);
9 return (1 ? free(0) : _efree(0)); // expected-error {{returning 'void' from a function with incompatible result type 'int'}}
13 return (1 ? _efree(0) : free(0)); // expected-error {{returning 'void' from a function with incompatible result type 'int'}}
/external/clang/test/Analysis/
H A Dfree.c4 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((voi
[all...]
H A DNewDelete+MismatchedDeallocator_intersections.cpp7 void free(void *);
15 free(&i); // no warn
18 free(++p1); // no warn
21 free(p2);
22 free(p2); // no warn
27 free(p4);
/external/clang/test/CodeGenCXX/
H A Dattr-cleanup.cpp4 void free(void *i) {} function in namespace:N
9 void *fp __attribute__((cleanup(N::free)));
/external/compiler-rt/test/asan/TestCases/Windows/
H A Ddouble_free.cc8 free(x);
9 free(x);
10 // CHECK: AddressSanitizer: attempting double-free on [[ADDR:0x[0-9a-f]+]]
11 // CHECK-NEXT: {{#0 .* free }}
15 // CHECK-NEXT: {{#0 .* free }}
H A Dcalloc_left_oob.cc16 free(buffer);
H A Dcalloc_right_oob.cc16 free(buffer);
H A Dcalloc_uaf.cc8 free(buffer);
10 // CHECK: AddressSanitizer: heap-use-after-free on address [[ADDR:0x[0-9a-f]+]]
15 // CHECK-NEXT: {{#0 .* free }}
H A Dfuse-lld.cc16 free(x);
18 // CHECK: heap-use-after-free
19 // CHECK: free
H A Dmalloc_left_oob.cc16 free(buffer);
H A Dmalloc_right_oob.cc16 free(buffer);
H A Dmalloc_uaf.cc8 free(buffer);
10 // CHECK: AddressSanitizer: heap-use-after-free on address [[ADDR:0x[0-9a-f]+]]
15 // CHECK-NEXT: {{#0 .* free }}
H A Drealloc_left_oob.cc16 free(buffer);
H A Drealloc_right_oob.cc16 free(buffer);
H A Drealloc_uaf.cc8 free(buffer);
10 // CHECK: AddressSanitizer: heap-use-after-free on address [[ADDR:0x[0-9a-f]+]]
15 // CHECK-NEXT: {{#0 .* free }}
H A Dsymbols_path.cc21 free(buffer);
/external/c-ares/
H A Dares_free_hostent.c34 free((char *)(host->h_name));
36 free(*p);
37 free(host->h_aliases);
38 free(host->h_addr_list[0]); /* no matter if there is one or many entries,
40 free(host->h_addr_list);
41 free(host);
H A Dares_free_string.c24 free(str);
/external/compiler-rt/test/asan/TestCases/
H A Ddeep_stack_uaf.cc12 static void free(char *x) { function in struct:DeepFree
13 DeepFree<depth - 1>::free(x);
19 static void free(char *x) { function in struct:DeepFree
20 ::free(x);
27 DeepFree<200>::free(x);
29 // CHECK: {{.*ERROR: AddressSanitizer: heap-use-after-free on address}}
H A Dsanity_check_pure_c.c14 free(x);
16 // CHECK: heap-use-after-free
17 // CHECK: free
/external/compiler-rt/test/asan/TestCases/Darwin/
H A Dabort_on_error.cc14 free(x);
16 // CHECK: {{.*ERROR: AddressSanitizer: heap-use-after-free on address}}
H A Dsandbox-symbolizer.cc18 free(x);
20 // CHECK: {{.*ERROR: AddressSanitizer: heap-use-after-free on address}}
/external/compiler-rt/test/asan/TestCases/Linux/
H A Dabort_on_error.cc15 free(x);
17 // CHECK: {{.*ERROR: AddressSanitizer: heap-use-after-free on address}}

Completed in 2217 milliseconds

1234567891011>>