(self, address: Union[Undefined,HeapAddress])
Mark the chunck pointed by <address> as freed.

        :param address: The address of the chunck to free.
Mark the chunck pointed by <address> as freed.
Mark the chunck pointed by <address > as freed .
def free(self, address: Union[Undefined,HeapAddress]):
        """
        Mark the chunck pointed by <address> as freed.

        :param address: The address of the chunck to free.
        """

        if isinstance(address, Undefined):
            _l.debug('free(), Undefined address provided')
        elif isinstance(address, HeapAddress):
            try:
                self._allocated_addresses.remove(address)
            except ValueError:
                _l.warning("free(), address %s had not been allocated", address)
        else:
            _l.warning("free(), expected HeapAddress, or Undefined, got %s", type(address).__name__)
def free ( self , address : Union [ Undefined , HeapAddress ] ) : if isinstance ( address , Undefined ) : _l . debug ( 'free(), Undefined address provided' ) elif isinstance ( address , HeapAddress ) : try : self . _allocated_addresses . remove ( address ) except ValueError : _l . warning ( "free(), address %s had not been allocated" , address ) else : _l . warning ( "free(), expected HeapAddress, or Undefined, got %s" , type ( address ) . __name__ )