> > i'm refering to this post i think it's better to write here > there might be a memory leak in ./crypto/pkcs7/pk7_smime.c > at the beginning i thought i was a fool, but i've seen that the same error was > elsewhere in the code (thanks to Changes between 0.9.6h and 0.9.7). > > Geoff says : > ******************** > *) Fix a memory leak in 'sk_dup()' in the case reallocation fails. (Also > tidy up some unnecessarily weird code in 'sk_new()'). > [Geoff, reported by Diego Tartara <[EMAIL PROTECTED]>]
Doesn't the same error occurs in other places, too, example: KCS7_SIGNER_INFO *PKCS7_add_signature(PKCS7 *p7, X509 *x509, EVP_PKEY *pkey, const EVP_MD *dgst) { PKCS7_SIGNER_INFO *si; if ((si=PKCS7_SIGNER_INFO_new()) == NULL) goto err; if (!PKCS7_SIGNER_INFO_set(si,x509,pkey,dgst)) goto err; if (!PKCS7_add_signer(p7,si)) goto err; return(si); err: /* si can still have a value ??? */ return(NULL); } ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]