void f() { char *str = strdup("hello"); while (condition) { if (condition) break; } free(str); }