]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
deinitialize the certificate
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 6 Mar 2013 03:12:42 +0000 (04:12 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 6 Mar 2013 03:12:42 +0000 (04:12 +0100)
lib/x509/verify-high.c

index d5069a45eec0b39ce710adfa0515ea4cdbdaf8e6..2dc80f07f3871ce936e4a06efff2639389fbea71 100644 (file)
@@ -215,6 +215,7 @@ gnutls_x509_trust_list_remove_cas(gnutls_x509_trust_list_t list,
           {
            if (_gnutls_check_if_same_cert(clist[i], list->node[hash].trusted_cas[j]) != 0)
              {
+                gnutls_x509_crt_deinit(list->node[hash].trusted_cas[j]);
                 list->node[hash].trusted_cas[j] = 
                        list->node[hash].trusted_cas[list->node[hash].trusted_ca_size-1];
                list->node[hash].trusted_ca_size--;