blob: 7c3f9ca3844056f1ed4b2a9856ba822d6cc5440b [file] [log] [blame]
/* Double free of a calloced pointer. */
#include <stdlib.h>
typedef void (*fptr)(void *);
#define SIZE 50
int main()
{
fptr *p;
p = calloc(SIZE, sizeof(fptr));
p[0] = free;
p[0](p);
free(p);
return 0;
}