[Commits] [SCM] claws branch, master, updated. 3.18.0-249-g347e003b4
wwp at claws-mail.org
wwp at claws-mail.org
Tue Oct 5 12:28:11 CEST 2021
The branch, master has been updated
via 347e003b4ae60cd233102813c53ccca2528cdc58 (commit)
from 4b4eded683dee45b097c800bae15f9c11d5d087c (commit)
Summary of changes:
src/ldapctrl.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 347e003b4ae60cd233102813c53ccca2528cdc58
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