From d8f5bc2d3d6ffe8c9021659e6bbbde1655c45483 Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Tue, 2 Aug 2022 11:51:25 +0200 Subject: [PATCH] Free the correct struct element Signed-off-by: Gabor Mezei --- library/bignum_new.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/bignum_new.c b/library/bignum_new.c index 8a7580633..3f25fad6c 100644 --- a/library/bignum_new.c +++ b/library/bignum_new.c @@ -130,7 +130,7 @@ void mbedtls_mpi_mod_modulus_free( mbedtls_mpi_mod_modulus *m ) case MBEDTLS_MPI_MOD_REP_MONTGOMERY: mbedtls_free( m->rep.mont ); break; case MBEDTLS_MPI_MOD_REP_OPT_RED: - mbedtls_free( m->rep.mont ); break; + mbedtls_free( m->rep.ored ); break; default: break; }