#include #include #include int main(void) { int SIZE = 10; char * ptr = (char *) malloc (SIZE); strncpy(ptr, "Hello", SIZE); printf("Pointer: %s\n", ptr); int err = 1; int abort = 0; if (err) { abort = 1; free(ptr); } if (abort) { printf("Aborted, contents = %s\n", ptr); } return 0; }