Remove group_list_heap_allocated

Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
diff --git a/library/ssl_misc.h b/library/ssl_misc.h
index ed0f7ab..e3ec368 100644
--- a/library/ssl_misc.h
+++ b/library/ssl_misc.h
@@ -712,10 +712,6 @@
     unsigned char retransmit_state;     /*!<  Retransmission state           */
 #endif
 
-#if !defined(MBEDTLS_DEPRECATED_REMOVED)
-    unsigned char group_list_heap_allocated;
-#endif
-
 #if defined(MBEDTLS_SSL_ECP_RESTARTABLE_ENABLED)
     uint8_t ecrs_enabled;               /*!< Handshake supports EC restart? */
     enum { /* this complements ssl->state with info on intra-state operations */
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index f7d7d9d..a957482 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -4368,15 +4368,6 @@
         return;
     }
 
-#if defined(PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY)
-#if !defined(MBEDTLS_DEPRECATED_REMOVED)
-    if (ssl->handshake->group_list_heap_allocated) {
-        mbedtls_free((void *) handshake->group_list);
-    }
-    handshake->group_list = NULL;
-#endif /* MBEDTLS_DEPRECATED_REMOVED */
-#endif /* PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY */
-
 #if defined(MBEDTLS_SSL_HANDSHAKE_WITH_CERT_ENABLED)
 #if !defined(MBEDTLS_DEPRECATED_REMOVED)
     handshake->sig_algs = NULL;