Skip to content

Commit

Permalink
Fix memory leak that occurs when purification is used to calculate ga…
Browse files Browse the repository at this point in the history
…in, but not the updates.
  • Loading branch information
paulbkoch committed Dec 26, 2024
1 parent 5e999b6 commit 50ab4ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/libebm/GenerateTermUpdate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,10 +585,10 @@ static ErrorEbm BoostMultiDimensional(BoosterShell* const pBoosterShell,
}

*pTotalGain = gain;

free(aWeights);
}

free(aWeights);

#ifndef NDEBUG
free(aDebugCopyBins);
#endif // NDEBUG
Expand Down

0 comments on commit 50ab4ba

Please sign in to comment.