original_string: public function cleanup()
      {
          if (!$this->memory) {
              throw new \LogicException("Cleanup should be used after allocate.");
          }
  
          $this->memory->delete();
          $this->memory = null;
      }
code: public function cleanup()
      {
          if (!$this->memory) {
              throw new \LogicException("Cleanup should be used after allocate.");
          }
  
          $this->memory->delete();
          $this->memory = null;
      }
code_tokens: public function cleanup ( ) { if ( ! $ this -> memory ) { throw new \ LogicException ( "Cleanup should be used after allocate." ) ; } $ this -> memory -> delete ( ) ; $ this -> memory = null ; }
docstring: Method to be called when the adapter is finished with.
  
  @return void
  @throws \LogicException
docstring_tokens: Method to be called when the adapter is finished with .