Home | History | Annotate | Download | only in tests

Lines Matching refs:free

28 NOINLINE void free_ccc(void *p) { free(p); break_optimization(0);}
61 free(a);
66 free(r);
80 free(pm);
87 free(ma);
94 free(a);
109 free(Ident(x));
113 free(Ident(malloc(Ident(1 << 27)))); // Try to drain the quarantine.
124 free(a);
133 free(a);
138 free(a);
176 const char *uaf_string = "AddressSanitizer:.*heap-use-after-free";
232 EXPECT_DEATH(x->bf1 = 0, "use-after-free");
233 EXPECT_DEATH(x->bf2 = 0, "use-after-free");
234 EXPECT_DEATH(x->bf3 = 0, "use-after-free");
235 EXPECT_DEATH(x->bf4 = 0, "use-after-free");
315 free(p);
332 free(Ident(malloc(size)));
362 free(ptr);
368 free(ptr2);
374 free(ptr);
375 EXPECT_DEATH(ptr = realloc(ptr, 77), "attempting double-free");
380 EXPECT_DEATH(ptr = realloc((int*)ptr + 1, 77), "attempting free.*not malloc");
381 free(ptr);
388 free(ptr);
393 free(ptr);
418 free(array);
428 free(x + 1);
434 "ERROR: AddressSanitizer: attempting free.*not malloc"
443 free(x);
444 free(x);
445 fprintf(stderr, "should have failed in the second free(%p)\n", (void *)x);
452 "ERROR: AddressSanitizer: attempting double-free"
709 free(a);
809 free(s);
966 free(strdup(Ident("123")));
1157 // as calls to new/delete go through malloc/free.
1170 EXPECT_DEATH(free(Ident(new int)),
1171 MismatchStr("operator new vs free"));
1172 EXPECT_DEATH(free(Ident(new int[2])),
1173 MismatchStr("operator new \\[\\] vs free"));