ExExeUtilTcb::~ExExeUtilTcb() { delete qparent_.up; delete qparent_.down; if (workAtp_) { workAtp_->release(); deallocateAtp(workAtp_, getGlobals()->getSpace()); workAtp_ = NULL; } freeResources(); if (extractedPartsObj_) { delete extractedPartsObj_; extractedPartsObj_ = NULL; } if (explQuery_) NADELETEBASIC(explQuery_, getHeap()); if (childQueryId_ != NULL) { NADELETEBASIC(childQueryId_, getHeap()); childQueryId_ = NULL; childQueryIdLen_ = 0; } if (outputBuf_ != NULL) { NADELETEBASIC(outputBuf_, getHeap()); outputBuf_ = NULL; outputBuf_ = 0; } };
ExFastExtractTcb::~ExFastExtractTcb() { // Release resources acquired // freeResources(); delete qParent_.up; delete qParent_.down; if (workAtp_) { workAtp_->release(); deallocateAtp(workAtp_, getSpace()); } if (inSqlBuffer_ && getHeap()) { getHeap()->deallocateMemory(inSqlBuffer_); inSqlBuffer_ = NULL; childOutputTD_ = NULL; } if (sourceFieldsConvIndex_) getHeap()->deallocateMemory(sourceFieldsConvIndex_); } // ExFastExtractTcb::~ExFastExtractTcb()
void keyRangeEx::freeResources() { bkData_.release(); ekData_.release(); workAtp_->release(); deallocateAtp(workAtp_,globals_->getSpace()); workAtp_ = NULL; }