Ok, then when are those datas supposed to be freed ? Here is the code:
X509V3_CTX ctx; X509V3_set_ctx_test(&ctx); X509_EXTENSION *ext; char * FieldName="authorityInfoAccess"; char * FieldValue="caIssuers;URI:http://www.openssl.org/root.crt" if (!(ext = X509V3_EXT_nconf(NULL, &ctx, FieldName, FieldValue))) { return false; } X509_EXTENSION_free(ext); I don't see what I forget to free ? --- Richard Levitte via RT <[EMAIL PROTECTED]> a �crit�: > > Sorry, I fail to see the problem here. As far as I > understand the > code, *pval points at the ASN.1 blob that is the > result of parsing the > attribute string you're citing. Surely you don't > want that to be freed > before you even got to use it, do you? > > Or do I misunderstand something here? > > [[EMAIL PROTECTED] - Tue Jun 4 19:51:11 2002]: > > > There is a memleak in libcrypto: > > > > 1) In crypto/asn1/tasn_new.c:149 in function > > asn1_item_ex_combine_new > > *pval is never freed, it should be freed at > > v3_conf:166 > > in function do_ext_nconf, it seems like the "it" > > associated > > function does not do the job properly: > > > > This problem shows up for an extension entry > > authorityInfoAccess = > > caIssuers;URI:http://www.openssl.org/root.crt > > > > > > > > Call stack: > > > > asn1_item_ex_combine_new > > ASN1_template_new > > asn1_item_ex_combine_new > > ASN1_item_ex_new > > ASN1_item_new > > ACCESS_DESCRIPTION_new > > v2i_AUTHORITY_INFO_ACCESS > > do_ext_nconf > > X509V3_EXT_nconf > > > > > ___________________________________________________________ > > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite > et en fran�ais ! > > Yahoo! Mail : http://fr.mail.yahoo.com > > > ______________________________________________________________________ > > OpenSSL Project > http://www.openssl.org > > Development Mailing List > [EMAIL PROTECTED] > > Automated List Manager > [EMAIL PROTECTED] > > > -- > Richard Levitte > [EMAIL PROTECTED] ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais ! Yahoo! Mail : http://fr.mail.yahoo.com ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
