dovecot-1.0: Memory leak fix

dovecot at dovecot.org dovecot at dovecot.org
Mon Jul 2 17:35:37 EEST 2007


details:   http://hg.dovecot.org/dovecot-1.0/rev/50c79521e8f5
changeset: 5332:50c79521e8f5
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jul 02 17:35:30 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 ebbc85ebf805 -r 50c79521e8f5 src/auth/passdb-ldap.c
--- a/src/auth/passdb-ldap.c	Thu Jun 28 17:18:34 2007 +0300
+++ b/src/auth/passdb-ldap.c	Mon Jul 02 17:35:30 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 ebbc85ebf805 -r 50c79521e8f5 src/auth/userdb-ldap.c
--- a/src/auth/userdb-ldap.c	Thu Jun 28 17:18:34 2007 +0300
+++ b/src/auth/userdb-ldap.c	Mon Jul 02 17:35:30 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