Searched refs:free (Results 1 - 25 of 3589) 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/main/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...]
H A Dlong-time.c14 free(x1);
16 free(x2);
17 free(x3);
19 free(x4);
/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.c3 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((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 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 }}
/external/compiler-rt/test/asan/TestCases/
H A Ddeep_stack_uaf.cc11 static void free(char *x) { function in struct:DeepFree
12 DeepFree<depth - 1>::free(x);
18 static void free(char *x) { function in struct:DeepFree
19 ::free(x);
26 DeepFree<200>::free(x);
28 // CHECK: {{.*ERROR: AddressSanitizer: heap-use-after-free on address}}
H A Dsanity_check_pure_c.c13 free(x);
15 // CHECK: heap-use-after-free
16 // CHECK: free
H A Dsleep_before_dying.c7 free(x);
H A Dstrip_path_prefix.c7 free(x);
10 // CHECK: heap-use-after-free
H A Duse-after-free-right.cc7 // Test use-after-free report in the case when access is at the right border of
13 free((void*)x);
15 // CHECK: {{.*ERROR: AddressSanitizer: heap-use-after-free on address}}
18 // CHECK: {{ #0 0x.* in main .*use-after-free-right.cc:}}[[@LINE-4]]
22 // CHECK-Linux: {{ #0 0x.* in .*free}}
23 // CHECK-Linux: {{ #1 0x.* in main .*use-after-free-right.cc:}}[[@LINE-10]]
26 // CHECK-Darwin: {{ #1 0x.* in main .*use-after-free-right.cc:}}[[@LINE-13]]
31 // CHECK-Linux: {{ #1 0x.* in main .*use-after-free-right.cc:}}[[@LINE-19]]
34 // CHECK-Darwin: {{ #1 0x.* in main .*use-after-free-right.cc:}}[[@LINE-22]]
H A Duse-after-free.cc10 free(x);
12 // CHECK: {{.*ERROR: AddressSanitizer: heap-use-after-free on address}}
15 // CHECK: {{ #0 0x.* in main .*use-after-free.cc:}}[[@LINE-4]]
19 // CHECK-Linux: {{ #0 0x.* in .*free}}
20 // CHECK-Linux: {{ #1 0x.* in main .*use-after-free.cc:}}[[@LINE-10]]
23 // CHECK-Darwin: {{ #1 0x.* in main .*use-after-free.cc:}}[[@LINE-13]]
28 // CHECK-Linux: {{ #1 0x.* in main .*use-after-free.cc:}}[[@LINE-19]]
31 // CHECK-Darwin: {{ #1 0x.* in main .*use-after-free.cc:}}[[@LINE-22]]
/external/elfutils/0.153/libdwfl/
H A Ddwfl_end.c5 Red Hat elfutils is free software; you can redistribute it and/or modify
58 free (dwfl->lookup_addr);
59 free (dwfl->lookup_module);
60 free (dwfl->lookup_segndx);
70 free (dwfl);
/external/valgrind/main/memcheck/tests/
H A Dmalloc3.c13 free(p);
17 free(p);
21 free(p);
25 free(p);
32 free(p);

Completed in 355 milliseconds

1234567891011>>