Skip to content

Commit

Permalink
Fix more memory issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Oct 10, 2024
1 parent f238923 commit a98d5f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cp/relic_cp_pcdel.c
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,7 @@ int cp_ambat_ask(bn_t *ls, g2_t *rs, g1_t a, g2_t b, const bn_t r, const bn_t d,
for (size_t i = 0; i < m; i++) {
bn_free(t[i]);
}
RLC_FREE(t);
}

return result;
Expand Down Expand Up @@ -978,6 +979,8 @@ int cp_amprd_ask(bn_t d, g2_t *ds, g1_t a1, g2_t b1, g1_t a2, g2_t b2,
g1_norm(a, a);
cp_amore_ask(d, a1, b1, a2, b2, c, r, a, rs[0], u, v, 0, 1);
} RLC_CATCH_ANY {
result = RLC_ERR;
} RLC_FINALLY {
g1_free(a);
g1_free(t);
}
Expand Down

0 comments on commit a98d5f1

Please sign in to comment.