/* this shows doing a double free */ #include "mk.h" MALLOC_CHECK_DECL(); int main(void) { void *ptr = MK(1); if (!ptr) return (EXIT_FAILURE); ptr = MK(1); if (!ptr) return (EXIT_FAILURE); F(ptr); F(ptr); return (EXIT_SUCCESS); }