func (s *Stringbank) Close() error {
	for _, allocation := range s.allocations {
		if err := mmap.Free(*(*reflect.SliceHeader)(unsafe.Pointer(&allocation)), 1); err != nil {
			return err
		}
	}
	s.allocations = nil
	s.current = nil
	return nil
}
Close releases resources associated with the StringBank
package offheap
import (
	"math/bits"
	"reflect"
	"unsafe"
	"github.com/philpearl/mmap"
)
const stringbankSize = 1 << 18  
type Stringbank struct {
	current     []byte
	allocations [][]byte
}