public function free_result($resource = '') {

        // if no active connection exists, return false
        if (!$this->_connected()) return false;

        // if no resource was specified, and a query was run before, assign the last resource
        if ($resource == '' && isset($this->last_result) && $this->last_result !== false) $resource = & $this->last_result;

        // if argument is a valid resource, free the result
        // (we mute it as it might have already been freed by a previous call to this method)
        if ($this->_is_result($resource)) @mysqli_free_result($resource);

    }
public function free_result($resource = '') {

        // if no active connection exists, return false
        if (!$this->_connected()) return false;

        // if no resource was specified, and a query was run before, assign the last resource
        if ($resource == '' && isset($this->last_result) && $this->last_result !== false) $resource = & $this->last_result;

        // if argument is a valid resource, free the result
        // (we mute it as it might have already been freed by a previous call to this method)
        if ($this->_is_result($resource)) @mysqli_free_result($resource);

    }
public function free_result ( $ resource = '' ) { // if no active connection exists, return false if ( ! $ this -> _connected ( ) ) return false ; // if no resource was specified, and a query was run before, assign the last resource if ( $ resource == '' && isset ( $ this -> last_result ) && $ this -> last_result !== false ) $ resource = & $ this -> last_result ; // if argument is a valid resource, free the result // (we mute it as it might have already been freed by a previous call to this method) if ( $ this -> _is_result ( $ resource ) ) @ mysqli_free_result ( $ resource ) ; }
Frees the memory associated with a result

<samp>You should always free your result with {@link free_result()}, when your result object is not needed anymore.</samp>

@param  resource    $resource   (Optional) A valid resource.

<i>If not specified, the resource returned by the last run query is used.</i>

@since  2.9.1

@return void
Frees the memory associated with a result