--- ssl/s3_srvr.c	22 Apr 2009 15:40:54 -0000	1.171.2.3
+++ ssl/s3_srvr.c	10 Jun 2009 08:30:11 -0000
@@ -2388,6 +2399,8 @@
 		EC_POINT_free(clnt_ecpoint);
 		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-> \
