From b4ab8a813705e0216aaa014964f9476af0d6e0f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 6 Nov 2012 18:13:32 +0100 Subject: [PATCH] Fixed memory leak due to typo --- library/ecp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ecp.c b/library/ecp.c index 857839afcb..bf570fe16c 100644 --- a/library/ecp.c +++ b/library/ecp.c @@ -266,8 +266,8 @@ static int ecp_double_generic( const ecp_group *grp, ecp_point *R, cleanup: - mpi_free( &LN ); mpi_init( &LD ); mpi_init( &K ); mpi_init( &L ); - mpi_free( &LL ); mpi_init( &X ); mpi_init( &Y ); + mpi_free( &LN ); mpi_free( &LD ); mpi_free( &K ); mpi_free( &L ); + mpi_free( &LL ); mpi_free( &X ); mpi_free( &Y ); return( ret ); }