https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106881
--- Comment #2 from David Binderman <dcb314 at hotmail dot com> --- Reduced C code seems to be: inline auto_free(void *a) { void **p = a; l_free(*p); } eap_gtc_check_settings() { char *identity __attribute__((cleanup(auto_free))); char password __attribute__((cleanup(auto_free))); identity = l_settings_get_string(); eap_append_secret(); }