[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-311-gf27c43b92
wwp at claws-mail.org
wwp at claws-mail.org
Tue Oct 5 12:28:15 CEST 2021
The branch, gtk3 has been updated
via f27c43b929d4140964704367d0bc77c8b42e6f15 (commit)
from d99686bea445a19ac1048b17d93e4314fa3e167d (commit)
Summary of changes:
src/ldapctrl.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit f27c43b929d4140964704367d0bc77c8b42e6f15
Author: wwp <subscript at free.fr>
Date: Tue Oct 5 12:27:52 2021 +0200
Fix CID 1491230: resource leak.
diff --git a/src/ldapctrl.c b/src/ldapctrl.c
index 1e5667cdb..1d2068535 100644
--- a/src/ldapctrl.c
+++ b/src/ldapctrl.c
@@ -575,14 +575,16 @@ gchar *ldapctl_format_criteria( LdapControl *ctl, const gchar *searchVal ) {
}
if( p2 == NULL ) {
+ g_free( p1 );
/* Nothing processed - format a default attribute */
retVal = g_strdup_printf( "(%s=*)", LDAPCTL_ATTR_EMAIL );
}
else {
/* We have something - free up previous result */
retVal = p2;
- g_free( p1 );
}
+ if (p1)
+ g_free( p1 );
debug_print("current search string: %s\n", retVal);
return retVal;
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list