Release CA at ntbtls_release.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 19 Jan 2017 07:34:45 +0000 (16:34 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 19 Jan 2017 07:34:45 +0000 (16:34 +0900)
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
src/protocol.c

index 5d4c8e3..f616bca 100644 (file)
@@ -2792,6 +2792,11 @@ _ntbtls_release (ntbtls_t tls)
       tls->psk_identity_len = 0;
     }
 
+  if (tls->ca_chain)
+    {
+      _ntbtls_x509_cert_release (tls->ca_chain);
+    }
+
   //FIXME:
   /* ssl_key_cert_free (tls->key_cert); */