Skip to content

Commit

Permalink
Merge pull request Smorodov#50 from Nuzhny007/master
Browse files Browse the repository at this point in the history
Fixed memory leak in the Hungarian algorithm
  • Loading branch information
Smorodov authored Oct 26, 2017
2 parents c6c5c69 + f2d1c28 commit 27f96c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Tracker/HungarianAlg/HungarianAlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,11 @@ void AssignmentProblemSolver::assignmentsuboptimal1(assignments_t& assignment, t
{
if (!finiteValueFound)
{
/* free allocated memory */
free(nOfValidObservations);
free(nOfValidTracks);
free(distMatrix);

return;
}
bool repeatSteps = true;
Expand Down

0 comments on commit 27f96c3

Please sign in to comment.