Fix a race condition in supported groups handling
[openssl.git] / ssl / ssl_lib.c
index 4e4477d2e1fc3fd17506efbb0e16788910d018b7..43a1099ba86248753a12294871751dd5a01daa89 100644 (file)
@@ -1188,6 +1188,7 @@ void SSL_free(SSL *s)
 #ifndef OPENSSL_NO_EC
     OPENSSL_free(s->ext.ecpointformats);
     OPENSSL_free(s->ext.supportedgroups);
+    OPENSSL_free(s->ext.peer_supportedgroups);
 #endif                          /* OPENSSL_NO_EC */
     sk_X509_EXTENSION_pop_free(s->ext.ocsp.exts, X509_EXTENSION_free);
 #ifndef OPENSSL_NO_OCSP