[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-309-g254f6308d
wwp at claws-mail.org
wwp at claws-mail.org
Tue Oct 5 09:42:24 CEST 2021
The branch, gtk3 has been updated
via 254f6308d5edc403b3641f0afa9cf39c3169a64f (commit)
from 4aab5e4039d6421e36a6ff57fcc8402a23f21c79 (commit)
Summary of changes:
src/ldaputil.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 254f6308d5edc403b3641f0afa9cf39c3169a64f
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