Skip to content

Commit

Permalink
Merge pull request #20 from isebasus/patch-1
Browse files Browse the repository at this point in the history
Fix CoACD memory leak caused by Node tree not being freed correctly by free_tree()
  • Loading branch information
SarahWeiii authored Aug 15, 2023
2 parents bc23c19 + 0738dbc commit d264a43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ namespace coacd
#endif
parts.push_back(pCH);
pmeshs.push_back(pmesh);
free_tree(node, 0);
#ifdef _OPENMP
omp_unset_lock(&writelock);
#endif
Expand Down Expand Up @@ -304,4 +305,4 @@ namespace coacd

return parts;
}
}
}

0 comments on commit d264a43

Please sign in to comment.