Skip to content

Commit

Permalink
threshold: Fix memory leak in Poly::LagrangeInterpolate (dashpay#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
xdustinface authored May 19, 2021
1 parent a83b071 commit c91e561
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/threshold.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ namespace bls {
bn_free(delta[i]);
bn_free(ids2[i]);
}
delete[] delta;
delete[] ids2;
};

bn_copy(a, ids2[0]);
Expand Down

0 comments on commit c91e561

Please sign in to comment.