#include void test (void) { void *p = malloc (sizeof (int)); if (!p) return; int *q = p; if (!q) return; free (q); }