Coverity doesn't like session->name staying set to track the last operation, try copying into a different field instead.