public void releaseBuffer(DataBuffer buf) throws IOException {

		try {
			if (buf.isDirty()) {
				releaseDirtyBuffer(buf);
			}
			else {
				releaseCleanBuffer(buf);
			}
		}
		catch (Exception e) {
			handleCorruptionException(e, "BufferMgr buffer release failed");
		}
	}
Release buffer back to buffer manager.
After invoking this method, the buffer object should not
be used and all references should be dropped.
@param buf data buffer
@throws IOException if IO error occurs
Ghidra/Framework/DB/src/main/java/db/buffers/BufferMgr.java