I'm resending this message because I previously used the wrong From:
address.  Sorry for any inconvenience.:

I am experiencing a memory leak with Crypt::SSLeay and OpenSSL.

If you have any idea why this could be happening, I'd really appreciate
your input.  Thanks.

The following program leaks memory:

#!/usr/bin/perl
use LWP::UserAgent;
while(1) {
    my $ua = new LWP::UserAgent;
    my $req = new HTTP::Request('GET', 'https://www.hotmail.com');
    my $res = $ua->request($req);
}

However, if https is changed to http, the program does not leak.

OpenSSL Details:

[asher@dev]$ openssl version -a
OpenSSL 0.9.4 09 Aug 1999
built on: Fri Dec  3 07:46:19 PST 1999
platform: FreeBSD-elf
options:  bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long)
idea(int) blowfish(idx)
compiler: cc -DRSAref -DTERMIOS -DL_ENDIAN -O -pipe -DSHA1_ASM
-DMD5_ASM -DRMD160_ASM
[asher@dev]$ ./config -t
Operating system: i386-pc-freebsd3.3
Configuring for FreeBSD-elf
/usr/bin/perl5 ./Configure FreeBSD-elf 386
[asher@dev]$ cc -v
gcc version 2.7.2.3

Crypt::SSLeay Details:

Version: 0.16




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

Reply via email to