[Commits] [SCM] claws branch, master, updated. 3.18.0-247-ge345eea1d

wwp at claws-mail.org wwp at claws-mail.org
Tue Oct 5 09:42:20 CEST 2021


The branch, master has been updated
       via  e345eea1d16843b8d5feaf6a7378bb11cd649e30 (commit)
      from  b4b2708444516520cf4dae3035f5b912b669b000 (commit)

Summary of changes:
 src/ldaputil.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit e345eea1d16843b8d5feaf6a7378bb11cd649e30
Author: wwp <subscript at free.fr>
Date:   Tue Oct 5 09:42:04 2021 +0200

    Fix CID 1491221: resource leak.

diff --git a/src/ldaputil.c b/src/ldaputil.c
index 13070dd5e..310bfdc12 100644
--- a/src/ldaputil.c
+++ b/src/ldaputil.c
@@ -243,7 +243,7 @@ GList *ldaputil_read_basedn(
 {
 	GList *baseDN = NULL;
 	LDAP *ld = NULL;
-	LdapControl *ctl = ldapctl_create();
+	LdapControl *ctl;
 	gint rc;
 
 	if( host == NULL ) 
@@ -251,6 +251,7 @@ GList *ldaputil_read_basedn(
 	if( port < 1 ) 
 		return NULL;
 
+    ctl = ldapctl_create();
 	ldapctl_set_tls(ctl, tls);
 	ldapctl_set_ssl(ctl, ssl);
 	ldapctl_set_port(ctl, port);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list