From 9e38c5060ab161704e86398475f36aca105d2404 Mon Sep 17 00:00:00 2001 From: Jean Raby Date: Tue, 22 Jan 2013 18:42:00 -0500 Subject: [PATCH] Plug ldap fd leak in login checks --- SoObjects/SOGo/LDAPSource.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SoObjects/SOGo/LDAPSource.m b/SoObjects/SOGo/LDAPSource.m index 622c8516a..302944673 100644 --- a/SoObjects/SOGo/LDAPSource.m +++ b/SoObjects/SOGo/LDAPSource.m @@ -570,14 +570,14 @@ static Class NSStringK; grace: _grace]; } } - [bindConnection release]; } NS_HANDLER { [self logWithFormat: @"%@", localException]; } NS_ENDHANDLER; - + + [bindConnection release]; return didBind; } @@ -675,7 +675,6 @@ static Class NSStringK; perr: (void *)perr]; } } - [bindConnection release]; } NS_HANDLER { @@ -683,6 +682,7 @@ static Class NSStringK; } NS_ENDHANDLER ; + [bindConnection release]; return didChange; }