Searched refs:free (Results 1 - 25 of 3311) 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);
H A Dignoring.c14 free(x);
27 free(y);
/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);
H A Dredefined_system.c11 char free();
16 return memmove() + malloc() + system() + stdin() + memccpy() + free() + strdup() + atoi();
H A DMalloc+NewDelete_intersections.cpp6 void free(void *);
/external/compiler-rt/lib/asan/lit_tests/TestCases/
H A Ddeep_stack_uaf.cc10 static void free(char *x) { function in struct:DeepFree
11 DeepFree<depth - 1>::free(x);
17 static void free(char *x) { function in struct:DeepFree
18 ::free(x);
25 DeepFree<200>::free(x);
27 // CHECK: {{.*ERROR: AddressSanitizer: heap-use-after-free on address}}
H A Dsanity_check_pure_c.c12 free(x);
14 // CHECK: heap-use-after-free
15 // 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.cc10 // Test use-after-free report in the case when access is at the right border of
16 free((void*)x);
18 // CHECK: {{.*ERROR: AddressSanitizer: heap-use-after-free on address}}
21 // CHECK: {{ #0 0x.* in main .*use-after-free-right.cc:17}}
25 // CHECK-Linux: {{ #0 0x.* in .*free}}
26 // CHECK-Linux: {{ #1 0x.* in main .*use-after-free-right.cc:16}}
29 // CHECK-Darwin: {{ #1 0x.* in main .*use-after-free-right.cc:16}}
34 // CHECK-Linux: {{ #1 0x.* in main .*use-after-free-right.cc:15}}
37 // CHECK-Darwin: {{ #1 0x.* in main .*use-after-free-right.cc:15}}
H A Duse-after-free.cc13 free(x);
15 // CHECK: {{.*ERROR: AddressSanitizer: heap-use-after-free on address}}
18 // CHECK: {{ #0 0x.* in main .*use-after-free.cc:14}}
22 // CHECK-Linux: {{ #0 0x.* in .*free}}
23 // CHECK-Linux: {{ #1 0x.* in main .*use-after-free.cc:13}}
26 // CHECK-Darwin: {{ #1 0x.* in main .*use-after-free.cc:13}}
31 // CHECK-Linux: {{ #1 0x.* in main .*use-after-free.cc:12}}
34 // CHECK-Darwin: {{ #1 0x.* in main .*use-after-free.cc:12}}
H A Ddouble-free.cc9 free(x);
10 free(x + argc - 1); // BOOM
11 // CHECK: AddressSanitizer: attempting double-free{{.*}}in thread T0
12 // CHECK: double-free.cc:[[@LINE-2]]
14 // CHECK: double-free.cc:[[@LINE-5]]
16 // CHECK: double-free.cc:[[@LINE-10]]
/external/elfutils/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);
H A Dbadfree.c12 free(p);
15 free(return_arg(q));
23 * warning: attempt to free a non-heap object
H A Dfprw.c18 free(dp);
19 free(fp);
22 free(ip);
H A Dmismatches.cpp10 free (fpointer); // should work!
15 free (nvec); // should give a warning
22 free(n); // should give a warning
H A Dbadfree-2trace.stderr.exp1 Invalid free() / delete / delete[] / realloc()
2 at 0x........: free (vg_replace_malloc.c:...)
4 Address 0x........ is not stack'd, malloc'd or (recently) free'd
6 Invalid free() / delete / delete[] / realloc()
7 at 0x........: free (vg_replace_malloc.c:...)
/external/libgsm/src/
H A Dgsm_destroy.c19 extern void free();
25 if (S) free((char *)S);
/external/elfutils/libasm/
H A Ddisasm_end.c6 Red Hat elfutils is free software; you can redistribute it and/or modify
39 free (ctx);
/external/llvm/lib/Support/
H A Dregfree.c47 - llvm_regfree - free everything
64 free((char *)g->strip);
66 free((char *)g->sets);
68 free((char *)g->setbits);
70 free(g->must);
71 free((char *)g);

Completed in 712 milliseconds

1234567891011>>