It should be moved, but doesn't really cause a problem as when command is NULL here, EG(exception) is set too, so you never get to the returned object anyway.