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");
317 free(p);
334 free(Ident(malloc(size)));
364 free(ptr);
370 free(ptr2);
376 free(ptr);
377 EXPECT_DEATH(ptr = realloc(ptr, 77), "attempting double-free");
382 EXPECT_DEATH(ptr = realloc((int*)ptr + 1, 77), "attempting free.*not malloc");
383 free(ptr);
390 free(ptr);
395 free(ptr);
420 free(array);
430 free(x + 1);
436 "ERROR: AddressSanitizer: attempting free.*not malloc"
445 free(x);
446 free(x);
447 fprintf(stderr, "should have failed in the second free(%p)\n", (void *)x);
454 "ERROR: AddressSanitizer: attempting double-free"
710 free(a);
810 free(s);
966 free(strdup(Ident("123")));
1157 // as calls to new/delete go through malloc/free.
1175 EXPECT_DEATH(free(Ident(new int)),
1176 MismatchStr("operator new vs free"));
1177 EXPECT_DEATH(free(Ident(new int[2])),
1178 free"));