the imclient library in 2.0.15 leaks memory:

--- lib/imclient.c.dist Fri Jul 13 02:11:58 2001
+++ lib/imclient.c      Fri Jul 13 02:35:19 2001
@@ -335,2 +335,4 @@
     /*    if (imclient->state) imclient->mech->free_state(imclient->state);*/
+    sasl_dispose(&(imclient->saslconn));
+    sasl_done();

besides of this there must be at least another
one, but i haven't found out yet whether it is
in imclient or in the Cyrus::IMAP XS-routines.
the following code slowly leaks on 2.0.15:

# ---
use Cyrus::IMAP::Admin;
while (1) {
    my $client = Cyrus::IMAP::Admin->new("localhost");
    my $rc = $client->authenticate(
            -mechanism  =>  "login",
            -service    =>  "imap",
            -user       =>  "foo",
            -password   =>  "bar",
    );
    print " authenticate NOK " unless $rc;
    print STDERR ".";
    select(undef, undef, undef, 0.1);
}
# ---

can anyone confirm this?

cheers,
-- 
Toni Andjelkovic
<[EMAIL PROTECTED]>

Reply via email to