The following code produces a memory leak if a memory allocation fails intermittenly:

=== cut from pem_lib.c ===
        nameB=BUF_MEM_new();
        headerB=BUF_MEM_new();
        dataB=BUF_MEM_new();
        if ((nameB == NULL) || (headerB == NULL) || (dataB == NULL))
                {
                PEMerr(PEM_F_PEM_READ_BIO,ERR_R_MALLOC_FAILURE);
                return(0);
                }
=== cut ===


-- Lev Walkin [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to