5 free(p
); // warn: attempt to free released memory
9 int *p
= malloc(sizeof(int));
11 *p
= 1; // warn: use after free
17 return; // warn: memory is never released
22 free(a
); // warn: argument is not allocated by malloc
26 int *p
= malloc(sizeof(char));
28 free(p
); // warn: argument to free() is offset by -4 bytes