Add missing cleanup in exec_file_locate_attach