public function freeRequest($req)
    {
        if ($this->state !== self::STATE_PROCESSING) {
            $this->freedBeforeProcessing = true;
            return;
        }
        $req->attrs->input = null;
        $this->req = null;
        $this->state = self::STATE_ROOT;
        $this->unfreezeInput();
    }