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 43c00dee81cf1383a9073df423e557801497dc82..23394b9861e5fba1c223081f0e08bfccea51f9d8 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;