commit | b903f4ecb67f9a7b92cc6b261a3f0fd64b5ea76b | [log] [tgz] |
---|---|---|
author | Xiaokang Qian <xiaokang.qian@arm.com> | Thu Jul 20 05:51:53 2023 +0000 |
committer | Xiaokang Qian <xiaokang.qian@arm.com> | Mon Jul 31 06:46:28 2023 +0000 |
tree | 5c8ff01d1778178e8f3539ea6a62ba6414a0095e | |
parent | 02a3e0318fce04f0c5990706e6864a254639543b [diff] [blame] |
Free P and N of the group cause they are dynamic allocated Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
diff --git a/library/ecp.c b/library/ecp.c index 049a1e0..15da4a2 100644 --- a/library/ecp.c +++ b/library/ecp.c
@@ -591,9 +591,11 @@ } if (grp->h != 1) { + mbedtls_mpi_free(&grp->P); mbedtls_mpi_free(&grp->A); mbedtls_mpi_free(&grp->B); mbedtls_ecp_point_free(&grp->G); + mbedtls_mpi_free(&grp->N); } if (!ecp_group_is_static_comb_table(grp) && grp->T != NULL) {