Free the receiver (and the remote session).
431340
public void free()
    {
        if (m_sendQueue != null)
        {
            try {
                m_sendQueue.freeRemoteSession();
            } catch (RemoteException ex)    {
                ex.printStackTrace();
            }
        }
        m_sendQueue = null;
        super.free();
    }
1022266
public void dispose() {
    try {
      if(sipProvider.getListeningPoints().length > 0)
          sipStack.deleteListeningPoint(sipProvider.getListeningPoints()[0]);
      sipProvider.removeSipListener(this);
      sipStack.deleteSipProvider(sipProvider);
      sipFactory.resetFactory();
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
280538
public function free()
    {
        if ($this->ev) {
            $this->ev->free();
            $this->ev = null;
        }
        if (isset($this->upstream)) {
            $this->upstream->freeRequest($this);
            $this->upstream = null;
        }
    }
720593
public void free()
    {
    	if (m_recordOwnerCollection != null)
    		m_recordOwnerCollection.free();
    	m_recordOwnerCollection = null;
        if (m_messageFilterList != null)
            m_messageFilterList.free();
        m_messageFilterList = null;
        // Close all records associated with this SessionObject
        if (m_vRecordList != null)
            m_vRecordList.free(this); // Free the records that belong to me
        m_vRecordList = null;

        if (m_databaseCollection != null)
            m_databaseCollection.free();
        m_databaseCollection = null;

        if (m_taskParent != null)
        	m_taskParent.removeRecordOwner(this);
        m_taskParent = null;
    }
1294396
def close(self):
        
        if self.lock_on_connect or self.locked:
            self.unlock()  # this refers to the config DB
        self._unlock_xml_agent()  # this refers to the XML agent
        if hasattr(self.device, 'remote_conn'):
            self.device.remote_conn.close()
929564
async def clear(self):
        """"""
        for session in list(self.values()):
            if session.state != STATE_CLOSED:
                await session._remote_closed()

        self.sessions.clear()
        super(SessionManager, self).clear()
1007558
def free(self):
        
        LOGGER.debug('Connection %s freeing', self.id)
        if self.handle.isexecuting():
            raise ConnectionBusyError(self)
        with self._lock:
            self.used_by = None
        LOGGER.debug('Connection %s freed', self.id)
125536
def dispatch(self, receiver):
        ''' 

        '''
        super(SessionCallbackRemoved, self).dispatch(receiver)
        if hasattr(receiver, '_session_callback_removed'):
            receiver._session_callback_removed(self)
857412
def remove_receiver(self, receiver):
        
        if receiver in self.event_receivers:
            self.event_receivers.remove(receiver)
1062297
public void destroy()
    {
        if (_ajpIn!=null)
            _ajpIn.destroy();
        _ajpIn=null;
        if (_ajpOut!=null)
            _ajpOut.destroy();
        _ajpOut=null;
        _remoteHost=null;
        _remoteAddr=null;
        _serverName=null;
    }
722512
public void free()
    {
        super.free(); // Do any inherited
        try   {
            if (m_remoteDatabase != null)
            {
                synchronized (this.getSyncObject(m_remoteDatabase))
                {
                    m_remoteDatabase.freeRemoteSession();
                    m_remoteDatabase = null;
                }
            }
        } catch (RemoteException ex)    {
            Utility.getLogger().warning("Remote free error: " + ex.getMessage());
            ex.printStackTrace();
        }
    }
977247
private void cleanupSession(){
        eventThread.queueClientEvent(new ClientSessionEvent(SessionEvent.CLOSED));
        watcherManager.cleanup();
        session.id = "";
        session.password = null;
        session.serverId = -1;
        onSessionClose();
    }
109771
public void freeDependent()
    {
        if (m_recDependent != null) // If close and file is still open
            if (!m_recDependent.isInFree())
        {
            this.setDependentListener(null);    // In case you want to delete me!
            if (m_recDependent != null)
            {
                if (m_bCloseOnFree)
                    m_recDependent.close();    // File is still open, and my listener is still there, close it!
                else
                    m_recDependent.free();    // File is still open, and my listener is still there, close it!
            }
        }
        m_recDependent = null;
        if (m_freeable != null)
            m_freeable.free();
        m_freeable = null;
    }
1050867
public void free()
    {
        super.free();
        try
        {
            if (this.getHandle(DBConstants.DATA_SOURCE_HANDLE) != null)
                ((BaseBuffer)this.getHandle(DBConstants.DATA_SOURCE_HANDLE)).free();
        } catch (DBException ex)    {
            // Never
        }
        if (m_pTable != null)
            m_pTable.removePTableOwner(this, true);      // Free or decrement the use count of the physical table
        m_pTable = null;
    }
965154
public void free()
    {
        if (m_databaseFake != null)
            m_databaseFake.free();
        m_databaseFake = null;
        if (m_taskFake != null)
            m_taskFake.free();
        m_taskFake = null;
        m_sharedTable = null;
        super.free();
    }
272569
public void free()
    {
        if (m_pTable != null)
        {
            PDatabase pDatabase = m_pTable.getPDatabase();
            m_pTable.removePTableOwner(this, true);
            pDatabase.removePDatabaseOwner(this, true);
        }
        m_pTable = null;
        super.free();
    }
410187
public void free()
    {
    	if (m_recordOwnerCollection != null)
    		m_recordOwnerCollection.free();
    	m_recordOwnerCollection = null;
        if (m_application != null)
            m_application.removeTask(this);   // Remove this session from the list
    }