freed output format variable in delete_globals call