diff --git a/programs/pkey/ecdsa.c b/programs/pkey/ecdsa.c index 94e00dff3..8d52b6726 100644 --- a/programs/pkey/ecdsa.c +++ b/programs/pkey/ecdsa.c @@ -189,6 +189,9 @@ exit: fflush( stdout ); getchar(); #endif + ecdsa_free( &ctx_verify ); + ecdsa_free( &ctx_sign ); + return( ret ); } #endif /* POLARSSL_BIGNUM_C && POLARSSL_ECDSA_C &&