]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/src/engine/boehm_gc/tests/leak_test.c
1 #include "leak_detector.h"
6 GC_find_leak
= 1; /* for new collect versions not compiled */
7 /* with -DFIND_LEAK. */
9 GC_INIT(); /* Needed if thread-local allocation is enabled. */
10 /* FIXME: This is not ideal. */
11 for (i
= 0; i
< 10; ++i
) {
12 p
[i
] = malloc(sizeof(int)+i
);
15 for (i
= 1; i
< 10; ++i
) {
18 for (i
= 0; i
< 9; ++i
) {
19 p
[i
] = malloc(sizeof(int)+i
);