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

1234567891011>>

/netbsd-current/external/apache2/llvm/dist/clang/docs/analyzer/checkers/
H A Dunix_malloc_example.c4 free(p);
5 free(p); // warn: attempt to free released memory
10 free(p);
11 *p = 1; // warn: use after free
22 free(a); // warn: argument is not allocated by malloc
28 free(p); // warn: argument to free() is offset by -4 bytes
/netbsd-current/external/gpl3/gdb.old/dist/ld/testsuite/ld-elf/
H A Ddel.cc3 extern "C" void free (void *);
9 free (ptr);
16 free (ptr);
/netbsd-current/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/
H A Dvalgrind-bt.c5 This program is free software; you can redistribute it and/or modify
27 free (p);
28 free (p); /* double-free */
H A Dcharset-malloc.c7 This program is free software; you can redistribute it and/or modify
35 free (p);
H A Dvalgrind-infcall.c5 This program is free software; you can redistribute it and/or modify
37 free (p);
38 free (p); /* double-free */
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/
H A Dvalgrind-bt.c5 This program is free software; you can redistribute it and/or modify
27 free (p);
28 free (p); /* double-free */
H A Dcharset-malloc.c7 This program is free software; you can redistribute it and/or modify
35 free (p);
H A Dvalgrind-infcall.c5 This program is free software; you can redistribute it and/or modify
37 free (p);
38 free (p); /* double-free */
/netbsd-current/external/bsd/ipf/dist/lib/
H A Dfreembt.c17 free(m);
/netbsd-current/tests/usr.bin/c++/
H A Dt_asan_double_free.sh37 void foo(int index) { char *x = (char*)malloc(10 * sizeof(char)); memset(x, 0, 10); free(x); free(x - index); }
44 asan_test_case double_free "Double Free example" double-free
H A Dt_asan_uaf.sh36 int foo() {int *x = (int *)malloc(10 * sizeof(int)); free(x); return x[0];}
43 asan_test_case uaf "Use After Free example" heap-use-after-free
/netbsd-current/tests/usr.bin/cc/
H A Dt_asan_double_free.sh37 void foo(int index) { char *x = (char*)malloc(10 * sizeof(char)); memset(x, 0, 10); free(x); free(x - index); }
44 asan_test_case double_free "Double Free example" double-free
H A Dt_asan_uaf.sh36 int foo() {int *x = (int *)malloc(10 * sizeof(int)); free(x); return x[0];}
43 asan_test_case uaf "Use After Free example" heap-use-after-free
/netbsd-current/external/gpl3/gdb.old/dist/sim/testsuite/sim/cris/c/
H A Dmapbrk.c22 free (p1);
23 free (p2);
24 free (p3);
25 free (p4);
26 free (p5);
27 free (p6);
35 free (p1);
/netbsd-current/external/gpl3/gdb/dist/sim/testsuite/cris/c/
H A Dmapbrk.c22 free (p1);
23 free (p2);
24 free (p3);
25 free (p4);
26 free (p5);
27 free (p6);
35 free (p1);
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/kadm5/
H A Ddestroy_c.c45 free(context->realm);
46 free(context->admin_server);
49 free(context->client_name);
51 free(context->service_name);
56 free(context);
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dfreehostent.c41 * free a malloced hostent
49 free (h->h_name);
52 free (*p);
53 free (h->h_aliases);
57 free (*p);
58 free (h->h_addr_list);
60 free (h);
H A Dxfree.c43 free(buf);
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dfree_host_realm.c42 * @param realmlist realmlist to free, NULL is ok
58 free (*p);
59 free (realmlist);
/netbsd-current/sys/external/isc/libsodium/include/
H A Dstdlib.h4 #undef free macro
6 #define free(addr) kern_free(addr) macro
/netbsd-current/external/gpl3/gcc.old/dist/libstdc++-v3/libsupc++/
H A Ddel_op.cc7 // GCC is free software; you can redistribute it and/or modify
29 // A freestanding C runtime may not provide "free" -- but there is no
34 extern "C" void free(void*);
49 std::free(ptr);
/netbsd-current/external/gpl3/gcc/dist/libstdc++-v3/libsupc++/
H A Ddel_op.cc7 // GCC is free software; you can redistribute it and/or modify
29 // A freestanding C runtime may not provide "free" -- but there is no
34 extern "C" void free(void*);
49 std::free(ptr);
/netbsd-current/external/gpl3/gdb/dist/gdbsupport/
H A Dgdb-xfree.h5 This program is free software; you can redistribute it and/or modify
23 /* GDB uses this instead of 'free', it detects when it is called on an
35 GNULIB_NAMESPACE::free (ptr); /* ARI: free */
37 free (ptr); /* ARI: free */
/netbsd-current/external/lgpl3/mpc/dist/tests/
H A Dclose_datafile.c7 GNU MPC is free software; you can redistribute it and/or modify it under
26 free (dc->pathname);
/netbsd-current/external/bsd/libarchive/dist/cpio/test/
H A Dtest_option_lzma.c46 free(p);
51 free(p);
54 free(p);
59 free(p);

Completed in 439 milliseconds

1234567891011>>