dovecot: Memory leak fix
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jul 2 17:35:44 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/93c00bc7dfea
changeset: 5856:93c00bc7dfea
user: Timo Sirainen <tss at iki.fi>
date: Mon Jul 02 17:35:31 2007 +0300
description:
Memory leak fix
diffstat:
2 files changed, 2 insertions(+)
src/auth/passdb-ldap.c | 1 +
src/auth/userdb-ldap.c | 1 +
diffs (22 lines):
diff -r fd6ff4d9cab1 -r 93c00bc7dfea src/auth/passdb-ldap.c
--- a/src/auth/passdb-ldap.c Sun Jul 01 22:11:41 2007 +0300
+++ b/src/auth/passdb-ldap.c Mon Jul 02 17:35:31 2007 +0300
@@ -123,6 +123,7 @@ ldap_query_save_result(struct ldap_conne
attr = ldap_next_attribute(conn->ld, entry, ber);
}
+ ber_free(ber, 0);
if (ctx.add_userdb_uid && conn->set.uid != (uid_t)-1) {
auth_request_set_field(auth_request, "userdb_uid",
diff -r fd6ff4d9cab1 -r 93c00bc7dfea src/auth/userdb-ldap.c
--- a/src/auth/userdb-ldap.c Sun Jul 01 22:11:41 2007 +0300
+++ b/src/auth/userdb-ldap.c Mon Jul 02 17:35:31 2007 +0300
@@ -106,6 +106,7 @@ ldap_query_get_result(struct ldap_connec
attr = ldap_next_attribute(conn->ld, entry, ber);
}
+ ber_free(ber, 0);
if (!seen_uid) {
if (conn->set.uid == (uid_t)-1) {
More information about the dovecot-cvs
mailing list