Replace this->HDFWriteBuffer<T>::~HDFWriteBuffer() with this->Free()