1 #include "leak_detector.h"
6 GC_set_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
);