--- ssl/s3_srvr.c 2009-11-05 16:52:11.000000000 +0100 +++ ssl/s3_srvr.c 2009-12-07 09:55:20.000000000 +0100 @@ -2274,6 +2274,8 @@ if (srvr_ecdh != NULL) EC_KEY_free(srvr_ecdh); BN_CTX_free(bn_ctx); + EC_KEY_free(s->s3->tmp.ecdh); + s->s3->tmp.ecdh = NULL; /* Compute the master secret */ s->session->master_key_length = s->method->ssl3_enc-> \