To be precise, it's a problem of pam_mysql here. Other PAM modules like ldap work perfect with saslauthd without leaking.
Uh, we use pam_ldap here with saslauthd and had the same problem with memory leaks. Using '-n 0' worked great, no performance problems at all.
Interesting. I'm not seeing any noticeable leakage on a Red Hat 8 based system. cyrus-sasl (2.1.10) is from the RH8 RPMs, as is all the LDAP environment. Cyrus was built from source (v2.1.14).
Craig Ringer