mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-30 15:45:26 +00:00
Fix small memory leak incase of errors
This commit is contained in:
@@ -2481,7 +2481,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// We check if it's a Ping command with no body.
|
||||
// See http://msdn.microsoft.com/en-us/library/ee200913(v=exchg.80).aspx for details
|
||||
if ([cmdName caseInsensitiveCompare: @"Ping"] != NSOrderedSame && [cmdName caseInsensitiveCompare: @"GetAttachment"] != NSOrderedSame && [cmdName caseInsensitiveCompare: @"Sync"] != NSOrderedSame)
|
||||
return [NSException exceptionWithHTTPStatus: 500];
|
||||
{
|
||||
RELEASE(context);
|
||||
RELEASE(pool);
|
||||
return [NSException exceptionWithHTTPStatus: 500];
|
||||
}
|
||||
}
|
||||
|
||||
if (d)
|
||||
|
||||
Reference in New Issue
Block a user