Hello,

I'm a beginner in debugging programs and I apologyze myself:
   - if this BUG is due to my poor skill and not to openSSL,
   - if it's not good place to report BUGs,
   - and for my english.

I'm suspecting a memory leak between RSA_new() and RSA_free().

[EMAIL PROTECTED]:~/bug$ cat bug.c
#include <openssl/ssl.h>
#include <mcheck.h>

int main (void)
{
    RSA *rsa;
    mtrace ();
    rsa = RSA_new();
    RSA_free (rsa);
    muntrace ();
    return 0;
}

[EMAIL PROTECTED]:~/bug$ gcc bug.c -lssl
[EMAIL PROTECTED]:~/bug$ ./a.out
[EMAIL PROTECTED]:~/bug$ mtrace $MALLOC_TRACE

Memory not freed:
-----------------
   Address     Size     Caller
0x0804a3d0     0x60  at 0x401bad0f
0x0804a438     0x40  at 0x401bad0f
0x0804a480      0xc  at 0x401bad0f
0x0804a490     0x14  at 0x401bad0f
0x0804a4a8     0x10  at 0x401bad0f
0x0804a4c0      0xc  at 0x401bad0f

Cordially,
--
Marc Lasson.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to