diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index ac3d1b1c7..a7b019c7f 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -1077,6 +1077,7 @@ static int ssl_async_resume( mbedtls_ssl_context *ssl, { mbedtls_printf( "Async resume callback: %s done but injected error\n", op_name ); + mbedtls_free( ctx ); return( MBEDTLS_ERR_PK_FEATURE_UNAVAILABLE ); }