moved BWTFree() into BWTIncFree()

BWTFree() is not for build. Only BWTIncFree() is needed.
This commit is contained in:
Heng Li 2017-07-30 18:47:03 -04:00
parent 0976272d99
commit 89a5c0c5c8
1 changed files with 4 additions and 10 deletions

View File

@ -1544,19 +1544,13 @@ BWTInc *BWTIncConstructFromPacked(const char *inputFileName, bgint_t initialMaxB
return bwtInc;
}
void BWTFree(BWT *bwt)
{
if (bwt == 0) return;
free(bwt->cumulativeFreq);
free(bwt->occValueMajor);
free(bwt->decodeTable);
free(bwt);
}
void BWTIncFree(BWTInc *bwtInc)
{
if (bwtInc == 0) return;
BWTFree(bwtInc->bwt);
free(bwtInc->bwt->cumulativeFreq);
free(bwtInc->bwt->occValueMajor);
free(bwtInc->bwt->decodeTable);
free(bwtInc->bwt);
free(bwtInc->workingMemory);
free(bwtInc->cumulativeCountInCurrentBuild);
free(bwtInc->packedShift);