Skip to content

Commit

Permalink
zoltan2: fix memory leak when sizeof(SCOTCH_Num) == sizeof(lno_t) #9312
Browse files Browse the repository at this point in the history
  • Loading branch information
kddevin committed Jun 18, 2021
1 parent b0ec8e5 commit 313677f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ void AlgPTScotch<Adapter>::partition(
env->memory("Zoltan2-Scotch: After creating solution");

// Clean up copies made due to differing data sizes.
TPL_Traits<SCOTCH_Num, lno_t>::DELETE_ARRAY(&vertloctab);
TPL_Traits<SCOTCH_Num, const offset_t>::DELETE_ARRAY(&vertloctab);
TPL_Traits<SCOTCH_Num, gno_t>::DELETE_ARRAY(&edgeloctab);

if (nVwgts) delete [] velotab;
Expand Down

0 comments on commit 313677f

Please sign in to comment.