Only call free once in CHOICE type.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 14 Mar 2008 00:57:01 +0000 (00:57 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 14 Mar 2008 00:57:01 +0000 (00:57 +0000)
crypto/asn1/tasn_fre.c

index 43c00de..23394b9 100644 (file)
@@ -115,8 +115,6 @@ static void asn1_item_combine_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int c
                                return;
                        }
                i = asn1_get_choice_selector(pval, it);
-               if (asn1_cb)
-                       asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL);
                if ((i >= 0) && (i < it->tcount))
                        {
                        ASN1_VALUE **pchval;